'use strict';
(function(stdin){

//define function
//declare variable

var inputs =stdin.toString().trim().split('\n');
var S = parseInt(inputs[0]);

//????????????????§?
//1?????? ????????? ???????????????
 //main
var h = Math.floor(S/(60*60));//46979
var m = Math.floor((S%3600)/60);
var s =S % 60;
 //display

//console.log(S,typeof S);
//console.log(S % 60);
console.log([h,m,s].join(':'));
}(require('fs').readFileSync('/dev/stdin','utf8')))