for(;Q=readline();)Q=-eval(Q.replace(/ /,'- ')),print(Q+360*(Q<-179||-(180<Q)))
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page