#?§???§????????????????????????hour miniute s ??§??¨???

TIMER = 60

time = gets.to_i

hour = 0
miniute = 0


if time >= 3600 then
	hour = time/TIMER/TIMER
	temp = time%3600
else 
	temp = time
end

if temp > 59 then
	miniute = temp/TIMER
	temp = temp%TIMER
end

if time <= 59 then
	temp = time
end


second = temp

puts "#{hour.floor} : #{miniute.floor} : #{second}"