#include <stdio.h>
int main()
{
    long int seconds;
    int h,m,s;
    scanf("%ld",&seconds);
    h=seconds/3600;
    m=(seconds-h*3600)/60;
    s=(seconds-h*3600-m*60)%60;
    printf("%d %d %d",h,m,s);
    return 0;
}
1h=3600s,1min=60s;编程小白多多指教。