main(b,d){for(;~scanf("%d",&d);getchar()&2?puts("-1"+b%2),b=1:1)b^=b>>d&1^(1<<d)-2;}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page