int input int input int input answer H-A print answer 24

1
2
3
4
5
H=int(input())
A=int(input())
B=int(input())
answer=H-A+B
print(answer%24)