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


public class Main {

	
	
	public static void main(String args[]) throws NumberFormatException, IOException{
		//??°?????\???(????????????????????????)???next()??????????????§??????????????????nextInt??§??????Int??????
		/*
		Scanner in = new Scanner(System.in);
		int inputA=in.nextInt();
		int inputB=in.nextInt();
		
		System.out.println(inputA*inputB+" "+(inputA+inputB)*2);
		*/
		Scanner in=new Scanner(System.in);
		int a=in.nextInt();
		
		ChangeTime(a);
	}
	public static  void ChangeTime(int Input_seconds){
		int hours=Input_seconds/3600;
		int minutes=(Input_seconds-3600*hours)/60;
		int seconds=Input_seconds-3600*hours-60*minutes;
		
		System.out.println(hours+":"+minutes+":"+seconds);
	}
	
} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main {

	
	
	public static void main(String args[]) throws NumberFormatException, IOException{
		//??°?????\???(????????????????????????)???next()??????????????§??????????????????nextInt??§??????Int??????
		/*
		Scanner in = new Scanner(System.in);
		int inputA=in.nextInt();
		int inputB=in.nextInt();
		
		System.out.println(inputA*inputB+" "+(inputA+inputB)*2);
		*/
		Scanner in=new Scanner(System.in);
		int a=in.nextInt();
		
		ChangeTime(a);
	}
	public static  void ChangeTime(int Input_seconds){
		int hours=Input_seconds/3600;
		int minutes=(Input_seconds-3600*hours)/60;
		int seconds=Input_seconds-3600*hours-60*minutes;
		
		System.out.println(hours+":"+minutes+":"+seconds);
	}
	
} Main public static void main(String args[]) throws NumberFormatException, IOException{
		//??°?????\???(????????????????????????)???next()??????????????§??????????????????nextInt??§??????Int??????
		/*
		Scanner in = new Scanner(System.in);
		int inputA=in.nextInt();
		int inputB=in.nextInt();
		
		System.out.println(inputA*inputB+" "+(inputA+inputB)*2);
		*/
		Scanner in=new Scanner(System.in);
		int a=in.nextInt();
		
		ChangeTime(a);
	} main {
		//??°?????\???(????????????????????????)???next()??????????????§??????????????????nextInt??§??????Int??????
		/*
		Scanner in = new Scanner(System.in);
		int inputA=in.nextInt();
		int inputB=in.nextInt();
		
		System.out.println(inputA*inputB+" "+(inputA+inputB)*2);
		*/
		Scanner in=new Scanner(System.in);
		int a=in.nextInt();
		
		ChangeTime(a);
	} Scanner in=new Scanner(System.in); in new Scanner(System.in) int a=in.nextInt(); a in.nextInt() in.nextInt in ChangeTime(a) ChangeTime a String args[] args public static  void ChangeTime(int Input_seconds){
		int hours=Input_seconds/3600;
		int minutes=(Input_seconds-3600*hours)/60;
		int seconds=Input_seconds-3600*hours-60*minutes;
		
		System.out.println(hours+":"+minutes+":"+seconds);
	} ChangeTime {
		int hours=Input_seconds/3600;
		int minutes=(Input_seconds-3600*hours)/60;
		int seconds=Input_seconds-3600*hours-60*minutes;
		
		System.out.println(hours+":"+minutes+":"+seconds);
	} int hours=Input_seconds/3600; hours Input_seconds/3600 Input_seconds 3600 int minutes=(Input_seconds-3600*hours)/60; minutes (Input_seconds-3600*hours)/60 (Input_seconds-3600*hours) Input_seconds 3600*hours 3600 hours 60 int seconds=Input_seconds-3600*hours-60*minutes; seconds Input_seconds-3600*hours-60*minutes Input_seconds-3600*hours-60*minutes Input_seconds 3600*hours 3600 hours 60*minutes 60 minutes System.out.println(hours+":"+minutes+":"+seconds) System.out.println System.out System System.out hours+":"+minutes+":"+seconds ":" minutes hours+":"+minutes+":"+seconds hours ":" minutes ":" seconds int Input_seconds Input_seconds public class Main {

	
	
	public static void main(String args[]) throws NumberFormatException, IOException{
		//??°?????\???(????????????????????????)???next()??????????????§??????????????????nextInt??§??????Int??????
		/*
		Scanner in = new Scanner(System.in);
		int inputA=in.nextInt();
		int inputB=in.nextInt();
		
		System.out.println(inputA*inputB+" "+(inputA+inputB)*2);
		*/
		Scanner in=new Scanner(System.in);
		int a=in.nextInt();
		
		ChangeTime(a);
	}
	public static  void ChangeTime(int Input_seconds){
		int hours=Input_seconds/3600;
		int minutes=(Input_seconds-3600*hours)/60;
		int seconds=Input_seconds-3600*hours-60*minutes;
		
		System.out.println(hours+":"+minutes+":"+seconds);
	}
	
} public class Main {

	
	
	public static void main(String args[]) throws NumberFormatException, IOException{
		//??°?????\???(????????????????????????)???next()??????????????§??????????????????nextInt??§??????Int??????
		/*
		Scanner in = new Scanner(System.in);
		int inputA=in.nextInt();
		int inputB=in.nextInt();
		
		System.out.println(inputA*inputB+" "+(inputA+inputB)*2);
		*/
		Scanner in=new Scanner(System.in);
		int a=in.nextInt();
		
		ChangeTime(a);
	}
	public static  void ChangeTime(int Input_seconds){
		int hours=Input_seconds/3600;
		int minutes=(Input_seconds-3600*hours)/60;
		int seconds=Input_seconds-3600*hours-60*minutes;
		
		System.out.println(hours+":"+minutes+":"+seconds);
	}
	
} Main
import java.io.IOException;
import java.util.Scanner;


public class Main {

	
	
	public static void main(String args[]) throws NumberFormatException, IOException{
		//??°?????\???(????????????????????????)???next()??????????????§??????????????????nextInt??§??????Int??????
		/*
		Scanner in = new Scanner(System.in);
		int inputA=in.nextInt();
		int inputB=in.nextInt();
		
		System.out.println(inputA*inputB+" "+(inputA+inputB)*2);
		*/
		Scanner in=new Scanner(System.in);
		int a=in.nextInt();
		
		ChangeTime(a);
	}
	public static  void ChangeTime(int Input_seconds){
		int hours=Input_seconds/3600;
		int minutes=(Input_seconds-3600*hours)/60;
		int seconds=Input_seconds-3600*hours-60*minutes;
		
		System.out.println(hours+":"+minutes+":"+seconds);
	}
	
}