import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		//System.out.println("??\???>>");

		Scanner scan = new Scanner(System.in);

		int intNum = scan.nextInt();

		int intH = (intNum/60)/60;

		int intNum2 = intNum - intH * 60 * 60;

		//System.out.println("intNum2: " + intNum2);

		int intM = intNum2/60;

		int intS = intNum2 - intM * 60;



		System.out.println(intH + ":" + intM + ":" + intS);




	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		//System.out.println("??\???>>");

		Scanner scan = new Scanner(System.in);

		int intNum = scan.nextInt();

		int intH = (intNum/60)/60;

		int intNum2 = intNum - intH * 60 * 60;

		//System.out.println("intNum2: " + intNum2);

		int intM = intNum2/60;

		int intS = intNum2 - intM * 60;



		System.out.println(intH + ":" + intM + ":" + intS);




	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		//System.out.println("??\???>>");

		Scanner scan = new Scanner(System.in);

		int intNum = scan.nextInt();

		int intH = (intNum/60)/60;

		int intNum2 = intNum - intH * 60 * 60;

		//System.out.println("intNum2: " + intNum2);

		int intM = intNum2/60;

		int intS = intNum2 - intM * 60;



		System.out.println(intH + ":" + intM + ":" + intS);




	} main {
		// TODO ?????????????????????????????????????????????

		//System.out.println("??\???>>");

		Scanner scan = new Scanner(System.in);

		int intNum = scan.nextInt();

		int intH = (intNum/60)/60;

		int intNum2 = intNum - intH * 60 * 60;

		//System.out.println("intNum2: " + intNum2);

		int intM = intNum2/60;

		int intS = intNum2 - intM * 60;



		System.out.println(intH + ":" + intM + ":" + intS);




	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int intNum = scan.nextInt(); intNum scan.nextInt() scan.nextInt scan int intH = (intNum/60)/60; intH (intNum/60)/60 (intNum/60) intNum 60 60 int intNum2 = intNum - intH * 60 * 60; intNum2 intNum - intH * 60 * 60 intNum intH * 60 * 60 intH * 60 * 60 intH 60 60 int intM = intNum2/60; intM intNum2/60 intNum2 60 int intS = intNum2 - intM * 60; intS intNum2 - intM * 60 intNum2 intM * 60 intM 60 System.out.println(intH + ":" + intM + ":" + intS) System.out.println System.out System System.out intH + ":" + intM + ":" + intS ":" intM intH + ":" + intM + ":" + intS intH ":" intM ":" intS String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		//System.out.println("??\???>>");

		Scanner scan = new Scanner(System.in);

		int intNum = scan.nextInt();

		int intH = (intNum/60)/60;

		int intNum2 = intNum - intH * 60 * 60;

		//System.out.println("intNum2: " + intNum2);

		int intM = intNum2/60;

		int intS = intNum2 - intM * 60;



		System.out.println(intH + ":" + intM + ":" + intS);




	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		//System.out.println("??\???>>");

		Scanner scan = new Scanner(System.in);

		int intNum = scan.nextInt();

		int intH = (intNum/60)/60;

		int intNum2 = intNum - intH * 60 * 60;

		//System.out.println("intNum2: " + intNum2);

		int intM = intNum2/60;

		int intS = intNum2 - intM * 60;



		System.out.println(intH + ":" + intM + ":" + intS);




	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		//System.out.println("??\???>>");

		Scanner scan = new Scanner(System.in);

		int intNum = scan.nextInt();

		int intH = (intNum/60)/60;

		int intNum2 = intNum - intH * 60 * 60;

		//System.out.println("intNum2: " + intNum2);

		int intM = intNum2/60;

		int intS = intNum2 - intM * 60;



		System.out.println(intH + ":" + intM + ":" + intS);




	}

}