a = int(input()) m = a // 10 * 6 h = 10 while m >= 60: m -= 60 h += 1 time = str(h) + ":" + str(m).zfill(2) print(time)