a = int(input()) h = a // 100 m = a % 100 m = m*60//100 print(format(h, '02d') + ':' + format(m, '02d'))