k-я секунда суток

1
2
3
4
5
6
7
8
value = int(input())
minutes, hours = 0, 0
if value > 0 and value <= 86399:
hours = value//3600
value -= hours*3600
minutes = value//60
print(f'It is {hours} hours {minutes} minutes.')