"use strict";

function Main(input) {
    var time=input.split("\n");
    console.log("%d:%d:%d",time[0]/3600,time[0]%3600/60,time[0]%60);
}

function debug(){
	var input = document.getElementById("input").value;
	Main(input);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));