import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine().trim();
		int s = Integer.parseInt(line);
		int h = s / 3600;
		s -= 3600 * h;
		int m = s / 60;
		s -= 60 * m;
		System.out.println(h + ":" + m + ":" + s);
		br.close();
	}
	
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine().trim();
		int s = Integer.parseInt(line);
		int h = s / 3600;
		s -= 3600 * h;
		int m = s / 60;
		s -= 60 * m;
		System.out.println(h + ":" + m + ":" + s);
		br.close();
	}
	
} Main public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine().trim();
		int s = Integer.parseInt(line);
		int h = s / 3600;
		s -= 3600 * h;
		int m = s / 60;
		s -= 60 * m;
		System.out.println(h + ":" + m + ":" + s);
		br.close();
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine().trim();
		int s = Integer.parseInt(line);
		int h = s / 3600;
		s -= 3600 * h;
		int m = s / 60;
		s -= 60 * m;
		System.out.println(h + ":" + m + ":" + s);
		br.close();
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine().trim(); line br.readLine().trim() br.readLine().trim br.readLine() br.readLine br int s = Integer.parseInt(line); s Integer.parseInt(line) Integer.parseInt Integer line int h = s / 3600; h s / 3600 s 3600 s -= 3600 * h s 3600 * h 3600 h int m = s / 60; m s / 60 s 60 s -= 60 * m s 60 * m 60 m System.out.println(h + ":" + m + ":" + s) System.out.println System.out System System.out h + ":" + m + ":" + s ":" m h + ":" + m + ":" + s h ":" m ":" s br.close() br.close br String[] args args public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine().trim();
		int s = Integer.parseInt(line);
		int h = s / 3600;
		s -= 3600 * h;
		int m = s / 60;
		s -= 60 * m;
		System.out.println(h + ":" + m + ":" + s);
		br.close();
	}
	
} public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine().trim();
		int s = Integer.parseInt(line);
		int h = s / 3600;
		s -= 3600 * h;
		int m = s / 60;
		s -= 60 * m;
		System.out.println(h + ":" + m + ":" + s);
		br.close();
	}
	
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine().trim();
		int s = Integer.parseInt(line);
		int h = s / 3600;
		s -= 3600 * h;
		int m = s / 60;
		s -= 60 * m;
		System.out.println(h + ":" + m + ":" + s);
		br.close();
	}
	
}