num = gets.to_i
h = 0
m = 0
s = 0

while num > 0
  if num >= 3600 
    h += 1
    num -= 3600
  elsif num >= 60
    m += 1
    num -= 60
  else
    s += 1
    num -= 1
  end
end

print h
print ":"
print m
print ":"
print s
puts ""


