import java.io.*;

class Main {
	public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String secStr = br.readLine();
		int sec = Integer.parseInt(secStr);
		int[] hms = {0,0,0};
		for( int i = 0; i < 3 ; i++ ) {
			hms[i] = sec % 60;
			sec = sec / 60;
		}
		System.out.println(hms[2] + ":" + hms[1] + ":" + hms[0]);
	}
} import java.io.*; io.* java class Main {
	public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String secStr = br.readLine();
		int sec = Integer.parseInt(secStr);
		int[] hms = {0,0,0};
		for( int i = 0; i < 3 ; i++ ) {
			hms[i] = sec % 60;
			sec = sec / 60;
		}
		System.out.println(hms[2] + ":" + hms[1] + ":" + hms[0]);
	}
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String secStr = br.readLine();
		int sec = Integer.parseInt(secStr);
		int[] hms = {0,0,0};
		for( int i = 0; i < 3 ; i++ ) {
			hms[i] = sec % 60;
			sec = sec / 60;
		}
		System.out.println(hms[2] + ":" + hms[1] + ":" + hms[0]);
	} main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String secStr = br.readLine();
		int sec = Integer.parseInt(secStr);
		int[] hms = {0,0,0};
		for( int i = 0; i < 3 ; i++ ) {
			hms[i] = sec % 60;
			sec = sec / 60;
		}
		System.out.println(hms[2] + ":" + hms[1] + ":" + hms[0]);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String secStr = br.readLine(); secStr br.readLine() br.readLine br int sec = Integer.parseInt(secStr); sec Integer.parseInt(secStr) Integer.parseInt Integer secStr int[] hms = {0,0,0}; hms {0,0,0} 0 0 0 for( int i = 0; i < 3 ; i++ ) {
			hms[i] = sec % 60;
			sec = sec / 60;
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			hms[i] = sec % 60;
			sec = sec / 60;
		} {
			hms[i] = sec % 60;
			sec = sec / 60;
		} hms[i] = sec % 60 hms[i] hms i sec % 60 sec 60 sec = sec / 60 sec sec / 60 sec 60 System.out.println(hms[2] + ":" + hms[1] + ":" + hms[0]) System.out.println System.out System System.out hms[2] + ":" + hms[1] + ":" + hms[0] ":" hms[1] hms[2] + ":" + hms[1] + ":" + hms[0] hms[2] hms 2 ":" hms[1] hms 1 ":" hms[0] hms 0 String[] args args
import java.io.*;

class Main {
	public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String secStr = br.readLine();
		int sec = Integer.parseInt(secStr);
		int[] hms = {0,0,0};
		for( int i = 0; i < 3 ; i++ ) {
			hms[i] = sec % 60;
			sec = sec / 60;
		}
		System.out.println(hms[2] + ":" + hms[1] + ":" + hms[0]);
	}
}