Tak z _FIXED_ by nn

for(;l=readline();)print(function f(x,y,z){return v[p=l+x+y+z]=v[p]||(x-y>0?f(f(x-5,y,z),f(y-5,z,x),f(z-5,x,y)):z)}.apply(0,v=l.split(' ')))

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

download

return to the top page