import java.util.Scanner;

class Main {

	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);
		int num= scan.nextInt();
		scan.close();

		int h;
		int m;
		int s;

		s = num%60;
		m = num/60%60;
		h = num/60/60;

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

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

	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);
		int num= scan.nextInt();
		scan.close();

		int h;
		int m;
		int s;

		s = num%60;
		m = num/60%60;
		h = num/60/60;

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

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

		Scanner scan = new Scanner(System.in);
		int num= scan.nextInt();
		scan.close();

		int h;
		int m;
		int s;

		s = num%60;
		m = num/60%60;
		h = num/60/60;

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

		Scanner scan = new Scanner(System.in);
		int num= scan.nextInt();
		scan.close();

		int h;
		int m;
		int s;

		s = num%60;
		m = num/60%60;
		h = num/60/60;

		System.out.println(h + ":" + m + ":" + s);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num= scan.nextInt(); num scan.nextInt() scan.nextInt scan scan.close() scan.close scan int h; h int m; m int s; s s = num%60 s num%60 num 60 m = num/60%60 m num/60%60 num/60 num 60 60 h = num/60/60 h num/60/60 num/60/60 num 60 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.util.Scanner;

class Main {

	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);
		int num= scan.nextInt();
		scan.close();

		int h;
		int m;
		int s;

		s = num%60;
		m = num/60%60;
		h = num/60/60;

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

}