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

let hour = 60 * 60;

let second = lines-0;
let str = '';

str += Math.floor(second / hour);
second -= Math.floor(second / hour) * hour;
str += ':';
str += Math.floor(second / 60);
second -= Math.floor(second / 60) * 60;
str += ':';
str += second;


console.log(str)
