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

public class Main {

	public static void main(String[] args) {
		BufferedReader inMsg = new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		try {
			while ((line = inMsg.readLine()) != null) {
				Integer totalSecs = Integer.parseInt(line);
				Integer hours = totalSecs / 3600;
				Integer minute = (totalSecs % 3600) / 60;
				Integer sec = totalSecs % 60;
				String tString = String.format("%d:%d:%d", hours, minute, sec);
				
				System.out.println(tString);
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		BufferedReader inMsg = new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		try {
			while ((line = inMsg.readLine()) != null) {
				Integer totalSecs = Integer.parseInt(line);
				Integer hours = totalSecs / 3600;
				Integer minute = (totalSecs % 3600) / 60;
				Integer sec = totalSecs % 60;
				String tString = String.format("%d:%d:%d", hours, minute, sec);
				
				System.out.println(tString);
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

} Main public static void main(String[] args) {
		BufferedReader inMsg = new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		try {
			while ((line = inMsg.readLine()) != null) {
				Integer totalSecs = Integer.parseInt(line);
				Integer hours = totalSecs / 3600;
				Integer minute = (totalSecs % 3600) / 60;
				Integer sec = totalSecs % 60;
				String tString = String.format("%d:%d:%d", hours, minute, sec);
				
				System.out.println(tString);
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	} main {
		BufferedReader inMsg = new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		try {
			while ((line = inMsg.readLine()) != null) {
				Integer totalSecs = Integer.parseInt(line);
				Integer hours = totalSecs / 3600;
				Integer minute = (totalSecs % 3600) / 60;
				Integer sec = totalSecs % 60;
				String tString = String.format("%d:%d:%d", hours, minute, sec);
				
				System.out.println(tString);
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	} BufferedReader inMsg = new BufferedReader(new InputStreamReader(System.in)); inMsg new BufferedReader(new InputStreamReader(System.in)) String line = ""; line "" try {
			while ((line = inMsg.readLine()) != null) {
				Integer totalSecs = Integer.parseInt(line);
				Integer hours = totalSecs / 3600;
				Integer minute = (totalSecs % 3600) / 60;
				Integer sec = totalSecs % 60;
				String tString = String.format("%d:%d:%d", hours, minute, sec);
				
				System.out.println(tString);
			}
		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			while ((line = inMsg.readLine()) != null) {
				Integer totalSecs = Integer.parseInt(line);
				Integer hours = totalSecs / 3600;
				Integer minute = (totalSecs % 3600) / 60;
				Integer sec = totalSecs % 60;
				String tString = String.format("%d:%d:%d", hours, minute, sec);
				
				System.out.println(tString);
			}
		} while ((line = inMsg.readLine()) != null) {
				Integer totalSecs = Integer.parseInt(line);
				Integer hours = totalSecs / 3600;
				Integer minute = (totalSecs % 3600) / 60;
				Integer sec = totalSecs % 60;
				String tString = String.format("%d:%d:%d", hours, minute, sec);
				
				System.out.println(tString);
			} (line = inMsg.readLine()) != null (line = inMsg.readLine()) line inMsg.readLine() inMsg.readLine inMsg null {
				Integer totalSecs = Integer.parseInt(line);
				Integer hours = totalSecs / 3600;
				Integer minute = (totalSecs % 3600) / 60;
				Integer sec = totalSecs % 60;
				String tString = String.format("%d:%d:%d", hours, minute, sec);
				
				System.out.println(tString);
			} Integer totalSecs = Integer.parseInt(line); totalSecs Integer.parseInt(line) Integer.parseInt Integer line Integer hours = totalSecs / 3600; hours totalSecs / 3600 totalSecs 3600 Integer minute = (totalSecs % 3600) / 60; minute (totalSecs % 3600) / 60 (totalSecs % 3600) totalSecs 3600 60 Integer sec = totalSecs % 60; sec totalSecs % 60 totalSecs 60 String tString = String.format("%d:%d:%d", hours, minute, sec); tString String.format("%d:%d:%d", hours, minute, sec) String.format String "%d:%d:%d" hours minute sec System.out.println(tString) System.out.println System.out System System.out tString String[] args args public class Main {

	public static void main(String[] args) {
		BufferedReader inMsg = new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		try {
			while ((line = inMsg.readLine()) != null) {
				Integer totalSecs = Integer.parseInt(line);
				Integer hours = totalSecs / 3600;
				Integer minute = (totalSecs % 3600) / 60;
				Integer sec = totalSecs % 60;
				String tString = String.format("%d:%d:%d", hours, minute, sec);
				
				System.out.println(tString);
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

} public class Main {

	public static void main(String[] args) {
		BufferedReader inMsg = new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		try {
			while ((line = inMsg.readLine()) != null) {
				Integer totalSecs = Integer.parseInt(line);
				Integer hours = totalSecs / 3600;
				Integer minute = (totalSecs % 3600) / 60;
				Integer sec = totalSecs % 60;
				String tString = String.format("%d:%d:%d", hours, minute, sec);
				
				System.out.println(tString);
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

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

public class Main {

	public static void main(String[] args) {
		BufferedReader inMsg = new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		try {
			while ((line = inMsg.readLine()) != null) {
				Integer totalSecs = Integer.parseInt(line);
				Integer hours = totalSecs / 3600;
				Integer minute = (totalSecs % 3600) / 60;
				Integer sec = totalSecs % 60;
				String tString = String.format("%d:%d:%d", hours, minute, sec);
				
				System.out.println(tString);
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}