program timp;var min,h,timpul,aux:integer;begin
h:=60; readln(min); aux:=min; if min<h then writeln(min,' min') else if min mod h=0 then begin timpul:=min div h ; writeln(timpul,' h'); end else begin timpul:= min div h; min:= aux-(timpul*60); writeln(timpul,' h ',min,' min'); end;end.