object Main extends App {
	val strAry = io.StdIn.readLine().split(' ')
	val longSec = strAry(0).toLong
	
	// 時を求める
	val h = longSec / 60 / 60
	val m = (longSec - (h * 60 * 60)) / 60
	val s = (longSec - (h * 60 * 60) - (m * 60))
	
	println(h + ":" + m + ":" + s)
}
