
import java.util.Scanner;

public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);

		int i = scan.nextInt();

		int h = i / 3600;
		i = i - h * 3600;



		int m = i / 60;

		int s = i - m * 60;

		System.out.println(h + ":" + m + ":" + s);

		scan.close();


	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);

		int i = scan.nextInt();

		int h = i / 3600;
		i = i - h * 3600;



		int m = i / 60;

		int s = i - m * 60;

		System.out.println(h + ":" + m + ":" + s);

		scan.close();


	}

} Main public static void main(String args[]){
		Scanner scan = new Scanner(System.in);

		int i = scan.nextInt();

		int h = i / 3600;
		i = i - h * 3600;



		int m = i / 60;

		int s = i - m * 60;

		System.out.println(h + ":" + m + ":" + s);

		scan.close();


	} main {
		Scanner scan = new Scanner(System.in);

		int i = scan.nextInt();

		int h = i / 3600;
		i = i - h * 3600;



		int m = i / 60;

		int s = i - m * 60;

		System.out.println(h + ":" + m + ":" + s);

		scan.close();


	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int i = scan.nextInt(); i scan.nextInt() scan.nextInt scan int h = i / 3600; h i / 3600 i 3600 i = i - h * 3600 i i - h * 3600 i h * 3600 h 3600 int m = i / 60; m i / 60 i 60 int s = i - m * 60; s i - m * 60 i m * 60 m 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 scan.close() scan.close scan String args[] args public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);

		int i = scan.nextInt();

		int h = i / 3600;
		i = i - h * 3600;



		int m = i / 60;

		int s = i - m * 60;

		System.out.println(h + ":" + m + ":" + s);

		scan.close();


	}

} public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);

		int i = scan.nextInt();

		int h = i / 3600;
		i = i - h * 3600;



		int m = i / 60;

		int s = i - m * 60;

		System.out.println(h + ":" + m + ":" + s);

		scan.close();


	}

} Main

import java.util.Scanner;

public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);

		int i = scan.nextInt();

		int h = i / 3600;
		i = i - h * 3600;



		int m = i / 60;

		int s = i - m * 60;

		System.out.println(h + ":" + m + ":" + s);

		scan.close();


	}

}