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