class Main
  def self.run
    time = read_time
    watch = Watch.new(time)
    puts watch.description
  end

  private

  def self.read_time
    gets.to_i
  end
end

class Watch
  def initialize(time)
    @time = time
  end

  def description
    "#{hours}:#{minutes}:#{seconds}"
  end

  private

  def hours
    @time / 3600
  end

  def minutes
    @time % 3600 / 60
  end

  def seconds
    @time % 60
  end
end

Main.run