while 1:l=input().split()*8;exec("a,b,c,*l=l[:0:-1];b in a+c!=print(a+b+c);"*6)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page