
import java.util.Scanner;

public class Main {

	private static Scanner scanner;

	public static void main(String[] args) {

		scanner = new Scanner(System.in);
		int S;
		while(0 > (S = scanner.nextInt()) || S >= 86400 );

		int hour = S/3600;
		int minute = (S-hour*3600)/60;
		int second = (S-hour*3600-minute*60);
		System.out.println(hour+":"+minute+":"+second);

	}

}
 import java.util.Scanner; Scanner java.util public class Main {

	private static Scanner scanner;

	public static void main(String[] args) {

		scanner = new Scanner(System.in);
		int S;
		while(0 > (S = scanner.nextInt()) || S >= 86400 );

		int hour = S/3600;
		int minute = (S-hour*3600)/60;
		int second = (S-hour*3600-minute*60);
		System.out.println(hour+":"+minute+":"+second);

	}

} Main private static Scanner scanner; scanner public static void main(String[] args) {

		scanner = new Scanner(System.in);
		int S;
		while(0 > (S = scanner.nextInt()) || S >= 86400 );

		int hour = S/3600;
		int minute = (S-hour*3600)/60;
		int second = (S-hour*3600-minute*60);
		System.out.println(hour+":"+minute+":"+second);

	} main {

		scanner = new Scanner(System.in);
		int S;
		while(0 > (S = scanner.nextInt()) || S >= 86400 );

		int hour = S/3600;
		int minute = (S-hour*3600)/60;
		int second = (S-hour*3600-minute*60);
		System.out.println(hour+":"+minute+":"+second);

	} scanner = new Scanner(System.in) scanner new Scanner(System.in) int S; S while(0 > (S = scanner.nextInt()) || S >= 86400 ); 0 > (S = scanner.nextInt()) || S >= 86400 0 > (S = scanner.nextInt()) 0 (S = scanner.nextInt()) S scanner.nextInt() scanner.nextInt scanner S >= 86400 S 86400 int hour = S/3600; hour S/3600 S 3600 int minute = (S-hour*3600)/60; minute (S-hour*3600)/60 (S-hour*3600) S hour*3600 hour 3600 60 int second = (S-hour*3600-minute*60); second (S-hour*3600-minute*60) S-hour*3600-minute*60 S hour*3600 hour 3600 minute*60 minute 60 System.out.println(hour+":"+minute+":"+second) System.out.println System.out System System.out hour+":"+minute+":"+second ":" minute hour+":"+minute+":"+second hour ":" minute ":" second String[] args args public class Main {

	private static Scanner scanner;

	public static void main(String[] args) {

		scanner = new Scanner(System.in);
		int S;
		while(0 > (S = scanner.nextInt()) || S >= 86400 );

		int hour = S/3600;
		int minute = (S-hour*3600)/60;
		int second = (S-hour*3600-minute*60);
		System.out.println(hour+":"+minute+":"+second);

	}

} public class Main {

	private static Scanner scanner;

	public static void main(String[] args) {

		scanner = new Scanner(System.in);
		int S;
		while(0 > (S = scanner.nextInt()) || S >= 86400 );

		int hour = S/3600;
		int minute = (S-hour*3600)/60;
		int second = (S-hour*3600-minute*60);
		System.out.println(hour+":"+minute+":"+second);

	}

} Main

import java.util.Scanner;

public class Main {

	private static Scanner scanner;

	public static void main(String[] args) {

		scanner = new Scanner(System.in);
		int S;
		while(0 > (S = scanner.nextInt()) || S >= 86400 );

		int hour = S/3600;
		int minute = (S-hour*3600)/60;
		int second = (S-hour*3600-minute*60);
		System.out.println(hour+":"+minute+":"+second);

	}

}

