import java.io.*;
class Main{
	public static void main(String[] args){
		try{
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String c = in.readLine();
			int time = Integer.parseInt(c);
			
			int h = time/3600;
			int m = (time%3600)/60;
			int s = time % 60;
			
			System.out.println(h+":"+m+":"+s);

		}catch(IOException e){
			e.printStackTrace();
		}

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

		}catch(IOException e){
			e.printStackTrace();
		}

	}
} Main public static void main(String[] args){
		try{
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String c = in.readLine();
			int time = Integer.parseInt(c);
			
			int h = time/3600;
			int m = (time%3600)/60;
			int s = time % 60;
			
			System.out.println(h+":"+m+":"+s);

		}catch(IOException e){
			e.printStackTrace();
		}

	} main {
		try{
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String c = in.readLine();
			int time = Integer.parseInt(c);
			
			int h = time/3600;
			int m = (time%3600)/60;
			int s = time % 60;
			
			System.out.println(h+":"+m+":"+s);

		}catch(IOException e){
			e.printStackTrace();
		}

	} try{
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String c = in.readLine();
			int time = Integer.parseInt(c);
			
			int h = time/3600;
			int m = (time%3600)/60;
			int s = time % 60;
			
			System.out.println(h+":"+m+":"+s);

		}catch(IOException e){
			e.printStackTrace();
		} catch(IOException e){
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String c = in.readLine();
			int time = Integer.parseInt(c);
			
			int h = time/3600;
			int m = (time%3600)/60;
			int s = time % 60;
			
			System.out.println(h+":"+m+":"+s);

		} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String c = in.readLine(); c in.readLine() in.readLine in int time = Integer.parseInt(c); time Integer.parseInt(c) Integer.parseInt Integer c int h = time/3600; h time/3600 time 3600 int m = (time%3600)/60; m (time%3600)/60 (time%3600) time 3600 60 int s = time % 60; s time % 60 time 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){
		try{
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			String c = in.readLine();
			int time = Integer.parseInt(c);
			
			int h = time/3600;
			int m = (time%3600)/60;
			int s = time % 60;
			
			System.out.println(h+":"+m+":"+s);

		}catch(IOException e){
			e.printStackTrace();
		}

	}
}