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

public class Main {

	public static void main(String[] args) throws IOException, NumberFormatException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		if( line != null ){
			int input = Integer.parseInt(line);
			int HH = input/3600;
			int mi = input%3600/60;
			int SS = input%60;

			System.out.println(HH+":"+mi+":"+SS);
		}
	}

} 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, NumberFormatException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		if( line != null ){
			int input = Integer.parseInt(line);
			int HH = input/3600;
			int mi = input%3600/60;
			int SS = input%60;

			System.out.println(HH+":"+mi+":"+SS);
		}
	}

} Main public static void main(String[] args) throws IOException, NumberFormatException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		if( line != null ){
			int input = Integer.parseInt(line);
			int HH = input/3600;
			int mi = input%3600/60;
			int SS = input%60;

			System.out.println(HH+":"+mi+":"+SS);
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		if( line != null ){
			int input = Integer.parseInt(line);
			int HH = input/3600;
			int mi = input%3600/60;
			int SS = input%60;

			System.out.println(HH+":"+mi+":"+SS);
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br if( line != null ){
			int input = Integer.parseInt(line);
			int HH = input/3600;
			int mi = input%3600/60;
			int SS = input%60;

			System.out.println(HH+":"+mi+":"+SS);
		} line != null line null {
			int input = Integer.parseInt(line);
			int HH = input/3600;
			int mi = input%3600/60;
			int SS = input%60;

			System.out.println(HH+":"+mi+":"+SS);
		} int input = Integer.parseInt(line); input Integer.parseInt(line) Integer.parseInt Integer line int HH = input/3600; HH input/3600 input 3600 int mi = input%3600/60; mi input%3600/60 input%3600 input 3600 60 int SS = input%60; SS input%60 input 60 System.out.println(HH+":"+mi+":"+SS) System.out.println System.out System System.out HH+":"+mi+":"+SS ":" mi HH+":"+mi+":"+SS HH ":" mi ":" SS String[] args args public class Main {

	public static void main(String[] args) throws IOException, NumberFormatException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		if( line != null ){
			int input = Integer.parseInt(line);
			int HH = input/3600;
			int mi = input%3600/60;
			int SS = input%60;

			System.out.println(HH+":"+mi+":"+SS);
		}
	}

} public class Main {

	public static void main(String[] args) throws IOException, NumberFormatException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		if( line != null ){
			int input = Integer.parseInt(line);
			int HH = input/3600;
			int mi = input%3600/60;
			int SS = input%60;

			System.out.println(HH+":"+mi+":"+SS);
		}
	}

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

public class Main {

	public static void main(String[] args) throws IOException, NumberFormatException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		if( line != null ){
			int input = Integer.parseInt(line);
			int HH = input/3600;
			int mi = input%3600/60;
			int SS = input%60;

			System.out.println(HH+":"+mi+":"+SS);
		}
	}

}