public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int seconds = scanner.nextInt(); int h = 0; int m = 0; int s = 0; h = seconds / 3600; m = (seconds - (h * 3600)) / 60; s = seconds - (h * 3600) - (m * 60); System.out.println(h + " " + m + " " + s); } }