p;main(a){for(;~scanf("%d",&a);p=a)putchar(48+(p