#include <stdio.h> int main() { int i = 0, n, k, c = 0; int ret=0; scanf("%d", &n); k = n; int a[20]; while (k) { i++; k = k / 10; c++; } int d = 0; for (int m = 0; m < i; m++) { if (n % 2 == 1) { a[d++] = 1; n = n / 10; } else if (n % 2 == 0) { a[d++] = 0; n = n / 10; } } for (int g = c - 1; g >= 0; g--) ret=ret*10+a[g]; printf("%d",ret); return 0; }