const main = (standardInput) => {
    const a = standardInput.split(' ');
    const h = 3600;
    const m = 60;

    console.log(Math.floor(a/h) + ":" + Math.floor(a%h/m) + ":" + a%h%m);
  }

main(require('fs').readFileSync('/dev/stdin', 'UTF-8'));

