a = int(input()) t = a * 60 // 100 h = 10 + t // 60 m = t % 60 print(':'.join(map(lambda s: str(s).zfill(2), (h, m))))