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