/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		long t = 3605;
        long h = t / 3600;
        long m = (t - h * 3600)/60;
        long s = t - 3600 * h - 60 * m;
        System.out.println(h);
        System.out.println(m);
        System.out.println(s);
	}
}