#include<stdio.h> int main() { int input = 0; scanf("%d",&input); int hour = input/60/60; int minute = (input / 60) ; int seconds = input - hour*60*60 - (minute -60*hour)*60; printf("%d %d %d",hour,minute-60*hour,seconds); return 0; }