import java.util.*;
public class Main{
public static void main(String[] args){
long seconds,h,m,s;
Scanner i = new Scanner(System.in);
seconds = i.nextLong();
h = seconds/3600;
seconds -= 3600*h;
m = seconds/60;
s = seconds%60;
System.out.printf("%d %d %d",h,m,s);
}
}

京公网安备 11010502036488号