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