a = int(input()) hour, minute = divmod(a, 100) o_clock = str(10+hour) minutes = int(minute*0.6) if minutes < 10: minutes = "0"+str(minutes) else: minutes = str(minutes) print(o_clock+":"+minutes)