seconds = int(input('input seconds: '))
seconds = seconds % (24 * 3600)
hour = seconds // 3600
seconds %= 3600
minutes = seconds // 60
seconds %= 60
print(f'{hour}:{minutes}:{seconds}')

1d06f8e43afd0a81beab04b4de469da201cda744
<mask token>

<mask token>
seconds %= 3600
<mask token>
seconds %= 60
print(f'{hour}:{minutes}:{seconds}')

seconds = int(input('input seconds: '))
seconds = seconds % (24 * 3600)
hour = seconds // 3600
seconds %= 3600
minutes = seconds // 60
seconds %= 60
print(f'{hour}:{minutes}:{seconds}')
