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