#include <stdio.h> int main() { int h,min,s,t; scanf("%d",&s); min=s/60; s=s%60; h=min/60; min=min%60; printf("%d:%d:%d",h,min,s); return 0; }