import scala.io.StdIn

object Main extends App {
    val seconds = StdIn.readInt()
    val sec = seconds % 60
    val min = seconds / 60 % 60
    val hour = seconds / 3600
    printf("%d:%d:%d\n", hour, min, sec)
}

