import java.util.Scanner;

public class Main {

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

} 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 s = time % 60;
		time -= s;
		
		int h = time / 3600;
		time -= h * 3600;
		
		int m = time / 60;
		
		
		System.out.println(h + ":" + m + ":" + s);
		
	}

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

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

} public class Main {

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

} 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 s = time % 60;
		time -= s;
		
		int h = time / 3600;
		time -= h * 3600;
		
		int m = time / 60;
		
		
		System.out.println(h + ":" + m + ":" + s);
		
	}

}