x = int(input()) time = float(x / 100) * 60 h = int(time / 60) m = int(time % (h * 60)) print(str(10+h)+':'+'{0:02d}'.format(m))