#include<stdio.h> #include<string.h> void Reverse(int arr[],int count){ int temp; int N=count; for(int i = 0;i<N/2;i++){ temp = arr[i]; arr[i] = arr[N - i - 1]; arr[N - i - 1] = temp; } } int main(){ int arr[10]={0};

long int a=0,b=0;
scanf("%ld",&a);
b=a;
int count=0;
while(b>0){
    b=b/10;
    count ++;
}
for(int i=0;i<count;i++){
    if(a%10 == 0){
        a=a/10;
        arr[i]=0;
    }else if(a%2==0){
        a=a/10;
        arr[i]=0;
    }else{
        a=a/10;
        arr[i]=1;
    }
}

Reverse(arr,count);
int ret=0;
for(int i=0;i<count;i++){
    ret=ret*10+arr[i];
}
printf("%d",ret);
return 0;

}