for(;[m,a,d,b]=readline();print((m-1|10/d|d/30|d==20?+m:m)+""+(m>10?d:+d)))m+=a,d+=b
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page