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