#include <stdio.h> #include <math.h> int main() { int n = 0; scanf("%d", &n); int i = 0; int a = 0; while(n) { if (n % 2 == 1) { a = a + (int)pow(10, i); } i++; n = n / 10; } printf("%d", a); return 0; }