def main():

    x = eval(input())

    y = int(x)

    h, z = divmod(y, 3600)

    m, s = divmod(z, 60)

    

    print((str(h)+":"+str(m)+":"+str(s)))



if __name__ == "__main__":

    main()
S = int(input())

h, tmp = divmod(S, 3600)

m, s = divmod(tmp, 60)

print(h,m,s,sep=':')

def main():
    x = eval(input())
    y = int(x)
    h, z = divmod(y, 3600)
    m, s = divmod(z, 60)
    print((str(h) + ":" + str(m) + ":" + str(s)))


if __name__ == "__main__":
    main()

S = int(input())
h, tmp = divmod(S, 3600)
m, s = divmod(tmp, 60)
print(h, m, s, sep=":")

-def main(): -    x = eval(input()) -    y = int(x) -    h, z = divmod(y, 3600) -    m, s = divmod(z, 60) -    print((str(h) + ":" + str(m) + ":" + str(s))) - - -if __name__ == "__main__": -    main() +S = int(input()) +h, tmp = divmod(S, 3600) +m, s = divmod(tmp, 60) +print(h, m, s, sep=":")