#include<stdio.h>
#include<math.h>
int main()
{
int n = 0;
int arr[10] = {0};
int i = 0;
int sum = 0;
int tmp = 0;
scanf("%d",&n);
while(n)
{
tmp = n%10;
if(tmp%2==0)
{
arr[i] = 0;
}
else
{
arr[i] = 1;
}
n=n/10;
i++;
}
int j = 0;
for(j = 0;j<i;j++)
{
sum = sum+arr[j]*pow(10,j);
}
printf("%d",sum);
return 0;
}