#include<iostream> int main(){ int t,s,f,m; scanf("%d",&t); s=t/3600; f=(t%3600)/60; m=(t%3600)%60; printf("%d:%d:%d",s,f,m); return 0; }