#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
while(cin>>s){
int a[8]={0};
for(int i=0;i<s.size();i++){
int n = s[i];// ascii
for(int j=0;j<8;j++){
// 转二进制
if(n%2 == 0) a[7-j] = 0;
else a[7-j] = 1;
n /= 2;
}
int cnt=0;
// 二进制中 1 的个数
for(int k=0;k<8;k++){
if(a[k] == 1) cnt++;
}
// 偶数个1,需要把最高位置为1,这样8位里面1的个数就是奇数了
if(cnt % 2 == 0) a[0]=1;
for(int k=0;k<8;k++) cout<<a[k];
cout<<endl;
}
}
}
// 64 位输出请用 printf("%lld")


京公网安备 11010502036488号