import java.io.*;
import java.util.*;

public class Main {


	public static void solver() {
	
		int a = cin.nextInt();

		int h = (int)a/3600;
		
		int m= (int) a%3600 / 60;
		
		int s = (a % 3600) % 60;
		
		cout.printf("%d:%d:%d\n", h, m, s);
		
		
		

	}
		
	
	public static void main(String[] args) throws IOException {

		cin = new Scanner(System.in);
		
		Main.solver();
	}

	static Scanner     cin;
	static PrintStream cout = System.out;//標準出力
	
} import java.io.*; io.* java import java.util.*; util.* java public class Main {


	public static void solver() {
	
		int a = cin.nextInt();

		int h = (int)a/3600;
		
		int m= (int) a%3600 / 60;
		
		int s = (a % 3600) % 60;
		
		cout.printf("%d:%d:%d\n", h, m, s);
		
		
		

	}
		
	
	public static void main(String[] args) throws IOException {

		cin = new Scanner(System.in);
		
		Main.solver();
	}

	static Scanner     cin;
	static PrintStream cout = System.out;//標準出力
	
} Main static Scanner     cin; cin static PrintStream cout = System.out;//標準出力 cout System.out System System.out public static void solver() {
	
		int a = cin.nextInt();

		int h = (int)a/3600;
		
		int m= (int) a%3600 / 60;
		
		int s = (a % 3600) % 60;
		
		cout.printf("%d:%d:%d\n", h, m, s);
		
		
		

	} solver {
	
		int a = cin.nextInt();

		int h = (int)a/3600;
		
		int m= (int) a%3600 / 60;
		
		int s = (a % 3600) % 60;
		
		cout.printf("%d:%d:%d\n", h, m, s);
		
		
		

	} int a = cin.nextInt(); a cin.nextInt() cin.nextInt cin int h = (int)a/3600; h (int)a/3600 (int)a 3600 int m= (int) a%3600 / 60; m (int) a%3600 / 60 (int) a%3600 (int) a 3600 60 int s = (a % 3600) % 60; s (a % 3600) % 60 (a % 3600) a 3600 60 cout.printf("%d:%d:%d\n", h, m, s) cout.printf cout "%d:%d:%d\n" h m s public static void main(String[] args) throws IOException {

		cin = new Scanner(System.in);
		
		Main.solver();
	} main {

		cin = new Scanner(System.in);
		
		Main.solver();
	} cin = new Scanner(System.in) cin new Scanner(System.in) Main.solver() Main.solver Main String[] args args public class Main {


	public static void solver() {
	
		int a = cin.nextInt();

		int h = (int)a/3600;
		
		int m= (int) a%3600 / 60;
		
		int s = (a % 3600) % 60;
		
		cout.printf("%d:%d:%d\n", h, m, s);
		
		
		

	}
		
	
	public static void main(String[] args) throws IOException {

		cin = new Scanner(System.in);
		
		Main.solver();
	}

	static Scanner     cin;
	static PrintStream cout = System.out;//標準出力
	
} public class Main {


	public static void solver() {
	
		int a = cin.nextInt();

		int h = (int)a/3600;
		
		int m= (int) a%3600 / 60;
		
		int s = (a % 3600) % 60;
		
		cout.printf("%d:%d:%d\n", h, m, s);
		
		
		

	}
		
	
	public static void main(String[] args) throws IOException {

		cin = new Scanner(System.in);
		
		Main.solver();
	}

	static Scanner     cin;
	static PrintStream cout = System.out;//標準出力
	
} Main
import java.io.*;
import java.util.*;

public class Main {


	public static void solver() {
	
		int a = cin.nextInt();

		int h = (int)a/3600;
		
		int m= (int) a%3600 / 60;
		
		int s = (a % 3600) % 60;
		
		cout.printf("%d:%d:%d\n", h, m, s);
		
		
		

	}
		
	
	public static void main(String[] args) throws IOException {

		cin = new Scanner(System.in);
		
		Main.solver();
	}

	static Scanner     cin;
	static PrintStream cout = System.out;//標準出力
	
}