import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines A = int(read()) t = 600 + A * 60 // 100 h, m = divmod(t, 60) print('{:02g}:{:02g}'.format(h, m))