# -*- coding: utf-8 -*- a = int(input()) h = 10 m = 0 m = round(a / 100 * 60) if m >= 60: h += m // 60 m %= 60 print(str(h).zfill(2) + ":" + str(m).zfill(2))