# ????????????
time = STDIN.gets.chomp.to_i
str = ""
flag = false
3.times do
  second = time % 60
  time /= 60
  if flag then
    str = ':' + str
  end
  str = second.to_s + str
  flag = true
end
puts str