import java.io.*;

class Main{
	public static void main(String[] args){
		int hour=0;
		int min=0;
		int sec=0;
		try{
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String line = br.readLine();
			int lineNum = Integer.parseInt(line);
			hour = lineNum / 3600;
			min = (lineNum % 3600) / 60;
			sec = lineNum % 60;
			String watch = hour +":"+ min +":"+sec;
			System.out.println(watch);
		}
		catch(IOException e){
		}
	}
} import java.io.*; io.* java class Main{
	public static void main(String[] args){
		int hour=0;
		int min=0;
		int sec=0;
		try{
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String line = br.readLine();
			int lineNum = Integer.parseInt(line);
			hour = lineNum / 3600;
			min = (lineNum % 3600) / 60;
			sec = lineNum % 60;
			String watch = hour +":"+ min +":"+sec;
			System.out.println(watch);
		}
		catch(IOException e){
		}
	}
} Main public static void main(String[] args){
		int hour=0;
		int min=0;
		int sec=0;
		try{
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String line = br.readLine();
			int lineNum = Integer.parseInt(line);
			hour = lineNum / 3600;
			min = (lineNum % 3600) / 60;
			sec = lineNum % 60;
			String watch = hour +":"+ min +":"+sec;
			System.out.println(watch);
		}
		catch(IOException e){
		}
	} main {
		int hour=0;
		int min=0;
		int sec=0;
		try{
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String line = br.readLine();
			int lineNum = Integer.parseInt(line);
			hour = lineNum / 3600;
			min = (lineNum % 3600) / 60;
			sec = lineNum % 60;
			String watch = hour +":"+ min +":"+sec;
			System.out.println(watch);
		}
		catch(IOException e){
		}
	} int hour=0; hour 0 int min=0; min 0 int sec=0; sec 0 try{
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String line = br.readLine();
			int lineNum = Integer.parseInt(line);
			hour = lineNum / 3600;
			min = (lineNum % 3600) / 60;
			sec = lineNum % 60;
			String watch = hour +":"+ min +":"+sec;
			System.out.println(watch);
		}
		catch(IOException e){
		} catch(IOException e){
		} IOException e {
		} {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String line = br.readLine();
			int lineNum = Integer.parseInt(line);
			hour = lineNum / 3600;
			min = (lineNum % 3600) / 60;
			sec = lineNum % 60;
			String watch = hour +":"+ min +":"+sec;
			System.out.println(watch);
		} 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 int lineNum = Integer.parseInt(line); lineNum Integer.parseInt(line) Integer.parseInt Integer line hour = lineNum / 3600 hour lineNum / 3600 lineNum 3600 min = (lineNum % 3600) / 60 min (lineNum % 3600) / 60 (lineNum % 3600) lineNum 3600 60 sec = lineNum % 60 sec lineNum % 60 lineNum 60 String watch = hour +":"+ min +":"+sec; watch hour +":"+ min +":"+sec ":" min hour +":"+ min +":"+sec hour ":" min ":" sec System.out.println(watch) System.out.println System.out System System.out watch String[] args args
import java.io.*;

class Main{
	public static void main(String[] args){
		int hour=0;
		int min=0;
		int sec=0;
		try{
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String line = br.readLine();
			int lineNum = Integer.parseInt(line);
			hour = lineNum / 3600;
			min = (lineNum % 3600) / 60;
			sec = lineNum % 60;
			String watch = hour +":"+ min +":"+sec;
			System.out.println(watch);
		}
		catch(IOException e){
		}
	}
}