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

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

		String str = br.readLine();

		calc(str);
	}

	public static void calc(String str){
		int num = Integer.parseInt(str);
		int s,m,h;

		h = num/3600;
		m = (num-3600*h)/60;
		s = num - 3600*h -60*m;

		System.out.println(h+":"+m+":"+s);
		}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main{
	public static void main(String[] args) throws IOException{
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		String str = br.readLine();

		calc(str);
	}

	public static void calc(String str){
		int num = Integer.parseInt(str);
		int s,m,h;

		h = num/3600;
		m = (num-3600*h)/60;
		s = num - 3600*h -60*m;

		System.out.println(h+":"+m+":"+s);
		}
} Main public static void main(String[] args) throws IOException{
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		String str = br.readLine();

		calc(str);
	} main {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		String str = br.readLine();

		calc(str);
	} InputStreamReader is = new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader br = new BufferedReader(is); br new BufferedReader(is) String str = br.readLine(); str br.readLine() br.readLine br calc(str) calc str String[] args args public static void calc(String str){
		int num = Integer.parseInt(str);
		int s,m,h;

		h = num/3600;
		m = (num-3600*h)/60;
		s = num - 3600*h -60*m;

		System.out.println(h+":"+m+":"+s);
		} calc {
		int num = Integer.parseInt(str);
		int s,m,h;

		h = num/3600;
		m = (num-3600*h)/60;
		s = num - 3600*h -60*m;

		System.out.println(h+":"+m+":"+s);
		} int num = Integer.parseInt(str); num Integer.parseInt(str) Integer.parseInt Integer str int s s m m h; h h = num/3600 h num/3600 num 3600 m = (num-3600*h)/60 m (num-3600*h)/60 (num-3600*h) num 3600*h 3600 h 60 s = num - 3600*h -60*m s num - 3600*h -60*m num - 3600*h -60*m num 3600*h 3600 h 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 String str str public class Main{
	public static void main(String[] args) throws IOException{
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		String str = br.readLine();

		calc(str);
	}

	public static void calc(String str){
		int num = Integer.parseInt(str);
		int s,m,h;

		h = num/3600;
		m = (num-3600*h)/60;
		s = num - 3600*h -60*m;

		System.out.println(h+":"+m+":"+s);
		}
} public class Main{
	public static void main(String[] args) throws IOException{
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(is);

		String str = br.readLine();

		calc(str);
	}

	public static void calc(String str){
		int num = Integer.parseInt(str);
		int s,m,h;

		h = num/3600;
		m = (num-3600*h)/60;
		s = num - 3600*h -60*m;

		System.out.println(h+":"+m+":"+s);
		}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

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

		String str = br.readLine();

		calc(str);
	}

	public static void calc(String str){
		int num = Integer.parseInt(str);
		int s,m,h;

		h = num/3600;
		m = (num-3600*h)/60;
		s = num - 3600*h -60*m;

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