var
h,a,b,answer : integer;
begin
readln(h,a,b);
answer := (h-a+b) mod 24;
writeln(answer);
end.
Объяснение:
var
h,a,b,answer : integer;
begin
readln(h,a,b);
answer := (h-a+b) mod 24;
writeln(answer);
end.
Объяснение: