a = int(raw_input())
t = 6 * a / 10
h = 10 + t / 60
m = t % 60
ans = str(h) + ':'
if m < 10: ans = ans + '0'
ans = ans + str(m)
print ans