#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>


int main(int argc, char * argv[]) {
    int x;
    
    while(scanf("%d", &x)) {
        int tmp = x;
        if(x < 10) {
            printf("Ne mozhe da se formira dvocifren broj\n");
        }
        else {
            int prva, posledna;
            posledna = x % 10;
            while(x > 9) {
                x /= 10;
            }
            prva = x;
            int zbir = prva + posledna;
            if(zbir < 10) {
                printf("Ne mozhe da se formira dvocifren broj\n");
            }
            else {
                int proizvod = (zbir % 10) * (zbir / 10);
                if(proizvod % 2 == 0) {
                    printf("%d ", tmp);
                }
            }
            
        }
    }
    return 0;
}
