while[exec("a=input().split();i=k"*2+"=100\nfor x in a:k-=x==ka[i-k]\ni+=k>49;k"*49)]:print(k)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page