program z248;
uses crt;
const f=60;
var n,s,i:integer;
BEGIN
clrscr;
writeln('vvesti');
readln(n);
s:= n mod f;
writeln('s=',s);
readln;
END.