a = int(input()) h, m = divmod(a * 60 // 100, 60) h = (10 + h) % 24 print("{:02}:{:02}".format(h, m))