int main(){char s,i;for(i=0;;i++){scanf("%s",&s);printf("%d",s[i]>'a'?0:1);}}