a = int(input())
h = 10
m = 0
h += a // 100
m += ((a // 10) % 10) * 6
print(str(h) + ":", end = "")
if m < 10:
    print(str(0), end = "")
print(m)