a = int(input()) hor = a // 100 min = int((a / 100 - a // 100)*60) print("{}:{:0=2}".format(hor+10,min))