object Main {
	def main(args:Array[String]) = {
		val in = readInt
		val hour = (in / 3600) % 24
		val minute = (in / 60) % 60
		val second = in % 60
		println(hour + ":" + minute + ":" + second)
	}
}