import java.util.Scanner
import java.util.concurrent.TimeUnit
 
object Main {
  def main (args: Array[String]) = {
    val in = new Scanner(System.in)
    val s = in.nextInt
    val hh = TimeUnit.SECONDS.toHours(s)
    val mm = TimeUnit.SECONDS.toMinutes(s) - TimeUnit.HOURS.toMinutes(hh)
    val ss = TimeUnit.SECONDS.toSeconds(s) - TimeUnit.HOURS.toSeconds(hh) - TimeUnit.MINUTES.toSeconds(mm)
 
    println("%d:%d:%d" format(hh, mm, ss))
  }
}