import java.io.*;

class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int h, m, s;

		String str = br.readLine();
		s = Integer.parseInt(str);

		h = s/3600;
		m = s/60;
		m = m%60;
		s = s%60;

		System.out.println(h + ":" + m + ":" + s);

	}
} import java.io.*; io.* java class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int h, m, s;

		String str = br.readLine();
		s = Integer.parseInt(str);

		h = s/3600;
		m = s/60;
		m = m%60;
		s = s%60;

		System.out.println(h + ":" + m + ":" + s);

	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int h, m, s;

		String str = br.readLine();
		s = Integer.parseInt(str);

		h = s/3600;
		m = s/60;
		m = m%60;
		s = s%60;

		System.out.println(h + ":" + m + ":" + s);

	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int h, m, s;

		String str = br.readLine();
		s = Integer.parseInt(str);

		h = s/3600;
		m = s/60;
		m = m%60;
		s = s%60;

		System.out.println(h + ":" + m + ":" + s);

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int h h m m s; s String str = br.readLine(); str br.readLine() br.readLine br s = Integer.parseInt(str) s Integer.parseInt(str) Integer.parseInt Integer str h = s/3600 h s/3600 s 3600 m = s/60 m s/60 s 60 m = m%60 m m%60 m 60 s = s%60 s s%60 s 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
import java.io.*;

class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int h, m, s;

		String str = br.readLine();
		s = Integer.parseInt(str);

		h = s/3600;
		m = s/60;
		m = m%60;
		s = s%60;

		System.out.println(h + ":" + m + ":" + s);

	}
}