import java.io.*;

class Main{

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

	public static void main(String[] args)throws IOException{
	
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String strSec = br.readLine();
		int intSec = Integer.parseInt(strSec);
		int h = intSec / 3600;
		int m = (intSec % 3600) / 60;
		int s = (intSec % 3600) % 60;
		System.out.println(h + ":" + m + ":" + s);
	
	}
	
} Main public static void main(String[] args)throws IOException{
	
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String strSec = br.readLine();
		int intSec = Integer.parseInt(strSec);
		int h = intSec / 3600;
		int m = (intSec % 3600) / 60;
		int s = (intSec % 3600) % 60;
		System.out.println(h + ":" + m + ":" + s);
	
	} main {
	
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String strSec = br.readLine();
		int intSec = Integer.parseInt(strSec);
		int h = intSec / 3600;
		int m = (intSec % 3600) / 60;
		int s = (intSec % 3600) % 60;
		System.out.println(h + ":" + m + ":" + s);
	
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String strSec = br.readLine(); strSec br.readLine() br.readLine br int intSec = Integer.parseInt(strSec); intSec Integer.parseInt(strSec) Integer.parseInt Integer strSec int h = intSec / 3600; h intSec / 3600 intSec 3600 int m = (intSec % 3600) / 60; m (intSec % 3600) / 60 (intSec % 3600) intSec 3600 60 int s = (intSec % 3600) % 60; s (intSec % 3600) % 60 (intSec % 3600) intSec 3600 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)throws IOException{
	
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String strSec = br.readLine();
		int intSec = Integer.parseInt(strSec);
		int h = intSec / 3600;
		int m = (intSec % 3600) / 60;
		int s = (intSec % 3600) % 60;
		System.out.println(h + ":" + m + ":" + s);
	
	}
	
}