import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int time = scan.nextInt();
		int hour = time / 3600;
		time = time - hour * 3600;
		int min = time / 60;
		time = time - min * 60;
		int sec = time;
		
		System.out.println(hour + ":" + min + ":" + sec);
	}

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

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int time = scan.nextInt();
		int hour = time / 3600;
		time = time - hour * 3600;
		int min = time / 60;
		time = time - min * 60;
		int sec = time;
		
		System.out.println(hour + ":" + min + ":" + sec);
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int time = scan.nextInt();
		int hour = time / 3600;
		time = time - hour * 3600;
		int min = time / 60;
		time = time - min * 60;
		int sec = time;
		
		System.out.println(hour + ":" + min + ":" + sec);
	} main {
		Scanner scan = new Scanner(System.in);
		int time = scan.nextInt();
		int hour = time / 3600;
		time = time - hour * 3600;
		int min = time / 60;
		time = time - min * 60;
		int sec = time;
		
		System.out.println(hour + ":" + min + ":" + sec);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int time = scan.nextInt(); time scan.nextInt() scan.nextInt scan int hour = time / 3600; hour time / 3600 time 3600 time = time - hour * 3600 time time - hour * 3600 time hour * 3600 hour 3600 int min = time / 60; min time / 60 time 60 time = time - min * 60 time time - min * 60 time min * 60 min 60 int sec = time; sec time System.out.println(hour + ":" + min + ":" + sec) System.out.println System.out System System.out hour + ":" + min + ":" + sec ":" min hour + ":" + min + ":" + sec hour ":" min ":" sec String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int time = scan.nextInt();
		int hour = time / 3600;
		time = time - hour * 3600;
		int min = time / 60;
		time = time - min * 60;
		int sec = time;
		
		System.out.println(hour + ":" + min + ":" + sec);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int time = scan.nextInt();
		int hour = time / 3600;
		time = time - hour * 3600;
		int min = time / 60;
		time = time - min * 60;
		int sec = time;
		
		System.out.println(hour + ":" + min + ":" + sec);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int time = scan.nextInt();
		int hour = time / 3600;
		time = time - hour * 3600;
		int min = time / 60;
		time = time - min * 60;
		int sec = time;
		
		System.out.println(hour + ":" + min + ":" + sec);
	}

}