#include <bits/stdc++.h> using namespace std; int main() { int x, h, s, b; cin >> x; b = x / 3600; h = x / 60; s = x % 60; cout <<b<<" "<<h<<" "<<s; return 0; }