#include<stdio.h>
#include<math.h>
int main(void)
{
    int a, result = 0,count = 0;
    scanf("%d",&a);
    while(a)
    {
        int x = 0;
        x = a % 10;   //关键在于把a的每一位数字分离出来
        if(x % 2 == 0)
        {
            x = 0;
        }
        else
        {
            x = 1;
        }
        result = result + x * pow(10,count);
        count++;
        a = a / 10;
    }
    printf("%d",result);

    return 0;
}