x = input() time = float(x / 100) * 60 h = int(time * 60) m = int(time % (h * 60)) print(10 + h,':',m)