a = int(input()) / 10 h = int((a * 6) // 60 + 10) m = int((a * 6) % 60) print("{}:{}".format(str(h).zfill(2), str(m).zfill(2)))