let input = require('fs').readFileSync( '/dev/stdin', 'utf8' );
let a = parseInt(input);
let hour = parseInt(input / 3600);
let min = parseInt((input % 3600) / 60);
let second = input % 60;
console.log(hour + ":" + min + ":" + second);
