a = int(input()) h, m = divmod(a, 100) print("{:02d}:{:02d}".format(10 + h, int(m * 0.6)))