"use strict"
var x = require('fs').readFileSync('/dev/stdin','utf8');
var h = parseInt(x/3600);
x = x - h * 3600;
var m = parseInt(x/60);
x = x - m * 60;
var s = x;
console.log(h + ':' + m + ':' + s);

