#include <iostream>
using namespace std;
int main() {
int a,b,c,d,e;
cin>>a;
b=a/3600;
c=a%3600;
d=c/60;
e=a%60;
cout<<b<<" "<<d<<" "<<e<<endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwppbnQgbWFpbigpIHsKaW50IGEsYixjLGQsZTsKY2luPj5hOwpiPWEvMzYwMDsKYz1hJTM2MDA7CmQ9Yy82MDsKZT1hJTYwOwpjb3V0PDxiPDwiICI8PGQ8PCIgIjw8ZTw8ZW5kbDsKCXJldHVybiAwOwp9