    s = gets.chomp.to_i                                                 
    hh = 0                                                    
    mm = 0                                                    
    ss = 0
    hh = s / 3600                                             
    s = s % 3600
    mm = s / 60
    s = s % 60
    ss = s
    puts "#{hh}:#{mm}:#{ss}" 
