int main(){
int n = 0;
scanf("%d",&n);//输入
int x = 0;
int a[9] = {0};//存储整数某位的奇为1,偶数为0,因为0=<n<=10的9次方
int i = 0;//数组下标
int len = 0;//数组长度
while(n>=10)//判断是奇数或者是偶数并存储
{
if((n%10)%2==1)
a[i] = 1;
else
a[i] = 0;
i++;
n /=10;
};
if((n%10)%2==1)
a[i] = 1;
else
a[i] = 0;
len = sizeof(a)/sizeof(a[0]);
for(i = len-1;i >= 0; i--)
{
while(a[i])//避免全为偶数而输出多于1个的0
{
x++;
break;
};
if(x!=0)
printf("%d",a[i]);
}
if(x==0)
printf("%d",0);
return 0;
}