using C=System.Console;class P{static void Main(){for(int r;;C.WriteLine(r))for(r=-109;r<0;r+=65%~C.Read());}}