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

public class Main {

	public static void main(String[] args) throws Exception {
		String inStr;
		inStr = inp();
		String[] in;
		in = inStr.split(" ");

		int t = Integer.valueOf(in[0]);
		int h=t/3600;
		int m=(t%3600)/60;
		int s=t%60;
		
		System.out.println(h+":"+m+":"+s);

	}

	private static String inp() throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		return br.readLine();
	}

} 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 {
		String inStr;
		inStr = inp();
		String[] in;
		in = inStr.split(" ");

		int t = Integer.valueOf(in[0]);
		int h=t/3600;
		int m=(t%3600)/60;
		int s=t%60;
		
		System.out.println(h+":"+m+":"+s);

	}

	private static String inp() throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		return br.readLine();
	}

} Main public static void main(String[] args) throws Exception {
		String inStr;
		inStr = inp();
		String[] in;
		in = inStr.split(" ");

		int t = Integer.valueOf(in[0]);
		int h=t/3600;
		int m=(t%3600)/60;
		int s=t%60;
		
		System.out.println(h+":"+m+":"+s);

	} main {
		String inStr;
		inStr = inp();
		String[] in;
		in = inStr.split(" ");

		int t = Integer.valueOf(in[0]);
		int h=t/3600;
		int m=(t%3600)/60;
		int s=t%60;
		
		System.out.println(h+":"+m+":"+s);

	} String inStr; inStr inStr = inp() inStr inp() inp String[] in; in in = inStr.split(" ") in inStr.split(" ") inStr.split inStr " " int t = Integer.valueOf(in[0]); t Integer.valueOf(in[0]) Integer.valueOf Integer in[0] in 0 int h=t/3600; h t/3600 t 3600 int m=(t%3600)/60; m (t%3600)/60 (t%3600) t 3600 60 int s=t%60; s t%60 t 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 private static String inp() throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		return br.readLine();
	} inp {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		return br.readLine();
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) return br.readLine(); br.readLine() br.readLine br public class Main {

	public static void main(String[] args) throws Exception {
		String inStr;
		inStr = inp();
		String[] in;
		in = inStr.split(" ");

		int t = Integer.valueOf(in[0]);
		int h=t/3600;
		int m=(t%3600)/60;
		int s=t%60;
		
		System.out.println(h+":"+m+":"+s);

	}

	private static String inp() throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		return br.readLine();
	}

} public class Main {

	public static void main(String[] args) throws Exception {
		String inStr;
		inStr = inp();
		String[] in;
		in = inStr.split(" ");

		int t = Integer.valueOf(in[0]);
		int h=t/3600;
		int m=(t%3600)/60;
		int s=t%60;
		
		System.out.println(h+":"+m+":"+s);

	}

	private static String inp() throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		return br.readLine();
	}

} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws Exception {
		String inStr;
		inStr = inp();
		String[] in;
		in = inStr.split(" ");

		int t = Integer.valueOf(in[0]);
		int h=t/3600;
		int m=(t%3600)/60;
		int s=t%60;
		
		System.out.println(h+":"+m+":"+s);

	}

	private static String inp() throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		return br.readLine();
	}

}