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