shell game EASY by croyal

s=1
while 1:
 i=input()
 l=[i/10,i%10]
 l.sort()
 d=l[1]-l[0]
 if(l[0]==s):s+=d
 elif(l[1]==s):s-=d
 print s

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page