int main(){int i;for(i=0;;i++){printf("%d",getchar()>'a'?0:1);}}