a = int(input())

h1 = a // 100

h = 10 + h1

m = a - 100*h1

m = int(m/100 * 60)

m = '{:0=2}'.format(m)

print(str(h)+ ':' + m)