#include <stdio.h> int main() { int n; int h,m,s; scanf("%d",&n); printf("%d %d %d",n/3600,(n/60)%60,n%60); }