a = int(input()) sh = 10 sm = 0 h = a // 100 m = int((a % 100) /100 *60) sh += h sm += m print("{:0>2}:{:0>2}".format(sh, sm))