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