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