while 1:p=input();print(2*ord(p[0])+min(2,~-int(p[1:])//15)-129)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page