#include <stdio.h>
#include <math.h>
int main()
{
    int a,b,c,s;
    scanf("%d",&a);
    for(b=0;b<9;b++)
    {
        int m=a%10;
        if(m%2==0)
        m=0;
        else
         m=1;
         a/=10;
        s=s+m*pow(10,b);
    }
    printf("%d",s);
    return 0;
}