var stdin = require('fs').readFileSync('/dev/stdin', 'utf8');

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

var h = S/(60*60);
var m = S % (60 * 60)/60;
var s = S%60;


console.log([h, m, s].join(':'));