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