#include <stdio.h> int main() { int a, b,c; int i=0; scanf("%d",&i); a=i%60;//秒 b=(i/60)%60;//分 c=i/60/60;//时 printf("%d %d %d",c,b,a); return 0; }