var x = require('fs').readFileSync('/dev/stdin', 'utf8');
var num = Number(x);
var h = Math.floor( num / 3600 );
var m = Math.floor(  ( num % 3600 ) / 60 );
var s = num % 60;
console.log( h + ":" + m + ":" + s );