fs = require('fs');
buf = fs.readFileSync('/dev/stdin');
str = buf.toString();
S = parseInt(str);
util = require('util');
f = Math.floor;
h = f(S/3600);
m = f((S%3600)/60);
s = f(S%60);
console.log(util.format("%d:%d:%d", h, m, s));