import java.io.*;
class Main{
	public static void main(String args[]){
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		try{
			String strS = in.readLine();
			int intS = (int)Integer.parseInt(strS);
			int h = intS / 3600;
			int m = (intS - h * 3600) / 60;
			int s = intS - (h * 3600 + m * 60);
			System.out.println(h + ":" + m + ":" + s);
		}catch(IOException e){
			System.out.println("error");
		}
	}
} import java.io.*; io.* java class Main{
	public static void main(String args[]){
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		try{
			String strS = in.readLine();
			int intS = (int)Integer.parseInt(strS);
			int h = intS / 3600;
			int m = (intS - h * 3600) / 60;
			int s = intS - (h * 3600 + m * 60);
			System.out.println(h + ":" + m + ":" + s);
		}catch(IOException e){
			System.out.println("error");
		}
	}
} Main public static void main(String args[]){
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		try{
			String strS = in.readLine();
			int intS = (int)Integer.parseInt(strS);
			int h = intS / 3600;
			int m = (intS - h * 3600) / 60;
			int s = intS - (h * 3600 + m * 60);
			System.out.println(h + ":" + m + ":" + s);
		}catch(IOException e){
			System.out.println("error");
		}
	} main {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		try{
			String strS = in.readLine();
			int intS = (int)Integer.parseInt(strS);
			int h = intS / 3600;
			int m = (intS - h * 3600) / 60;
			int s = intS - (h * 3600 + m * 60);
			System.out.println(h + ":" + m + ":" + s);
		}catch(IOException e){
			System.out.println("error");
		}
	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) try{
			String strS = in.readLine();
			int intS = (int)Integer.parseInt(strS);
			int h = intS / 3600;
			int m = (intS - h * 3600) / 60;
			int s = intS - (h * 3600 + m * 60);
			System.out.println(h + ":" + m + ":" + s);
		}catch(IOException e){
			System.out.println("error");
		} catch(IOException e){
			System.out.println("error");
		} IOException e {
			System.out.println("error");
		} System.out.println("error") System.out.println System.out System System.out "error" {
			String strS = in.readLine();
			int intS = (int)Integer.parseInt(strS);
			int h = intS / 3600;
			int m = (intS - h * 3600) / 60;
			int s = intS - (h * 3600 + m * 60);
			System.out.println(h + ":" + m + ":" + s);
		} String strS = in.readLine(); strS in.readLine() in.readLine in int intS = (int)Integer.parseInt(strS); intS (int)Integer.parseInt(strS) Integer.parseInt Integer strS int h = intS / 3600; h intS / 3600 intS 3600 int m = (intS - h * 3600) / 60; m (intS - h * 3600) / 60 (intS - h * 3600) intS h * 3600 h 3600 60 int s = intS - (h * 3600 + m * 60); s intS - (h * 3600 + m * 60) intS (h * 3600 + m * 60) h * 3600 h 3600 m * 60 m 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[]){
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		try{
			String strS = in.readLine();
			int intS = (int)Integer.parseInt(strS);
			int h = intS / 3600;
			int m = (intS - h * 3600) / 60;
			int s = intS - (h * 3600 + m * 60);
			System.out.println(h + ":" + m + ":" + s);
		}catch(IOException e){
			System.out.println("error");
		}
	}
}