while 1:print+(reduce(lambda m,n:n*(m>1>(m^n)&(m^n)-1<m^n),map(int,raw_input().split()))>0)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page