# -*- coding: utf-8 -*-

n = int(input())

horas = n // 3600
n %= 3600
minutos = n // 60
n %= 60

print('{0:d}:{1:d}:{2:d}'.format(horas, minutos, n))

682d6e0d9866afe5defb3c0fec8a78ef0167d044
<mask token>

<mask token>
n %= 3600
<mask token>
n %= 60
print('{0:d}:{1:d}:{2:d}'.format(horas, minutos, n))

n = int(input())
horas = n // 3600
n %= 3600
minutos = n // 60
n %= 60
print('{0:d}:{1:d}:{2:d}'.format(horas, minutos, n))

# -*- coding: utf-8 -*-

n = int(input())

horas = n // 3600
n %= 3600
minutos = n // 60
n %= 60

print('{0:d}:{1:d}:{2:d}'.format(horas, minutos, n))
