#include <stdio.h> int count = 0; int i = 0; int fact(int n) { if (n) { int a = n % 10; int b = a % 2; return 10 * fact(n / 10) + b; } return 0; } int main(void) { int n = 0; scanf("%d",&n); int ret = fact(n); printf("%d\n",ret); return 0; }