#include<iostream> int main(){ int n,a,b,c; scanf("%d",&n); a=n/3600; b=(n-a*3600)/60; c=n%60; printf("%d:%d:%d",a,b,c); return 0; }