t = eval(input()) h = int(t / 3600) r = t % 3600 m = int(r / 60) s = r % 60 print (str(h)+":"+str(m)+":"+str(s))