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