a = int(input()) h = 10 m = int(a * 60 / 100) h += m//60 m %= 60 print('{0}:{1:02}'.format(h, m))