#include <iostream>
using namespace std;
int main()
{
long long n;
int t,i=0;
int a[10];
cin>>n;
do
{
t=n%10;
a[i]= (t%2==0)?0:1;
i++;
n=n/10;
}while(n!=0);
for (int j=i-1;j>=0;j--)
{
cout<<a[j];//这种方法有可能输出00001这种数字
}
}


京公网安备 11010502036488号