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