import java.util.Scanner;


public class Main {

	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int second = sc.nextInt();
		sc.close();

		int h = 0,m = 0,s = 0;

		if(second != 0){
			h = (int)(Math.floor(second / 3600));
			m = (int)(Math.floor(second / 60)) % 60;
			s = second % 60;
		}
		System.out.println(h+":"+m+":"+s);
	}

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

	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int second = sc.nextInt();
		sc.close();

		int h = 0,m = 0,s = 0;

		if(second != 0){
			h = (int)(Math.floor(second / 3600));
			m = (int)(Math.floor(second / 60)) % 60;
			s = second % 60;
		}
		System.out.println(h+":"+m+":"+s);
	}

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

		Scanner sc = new Scanner(System.in);
		int second = sc.nextInt();
		sc.close();

		int h = 0,m = 0,s = 0;

		if(second != 0){
			h = (int)(Math.floor(second / 3600));
			m = (int)(Math.floor(second / 60)) % 60;
			s = second % 60;
		}
		System.out.println(h+":"+m+":"+s);
	} main {

		Scanner sc = new Scanner(System.in);
		int second = sc.nextInt();
		sc.close();

		int h = 0,m = 0,s = 0;

		if(second != 0){
			h = (int)(Math.floor(second / 3600));
			m = (int)(Math.floor(second / 60)) % 60;
			s = second % 60;
		}
		System.out.println(h+":"+m+":"+s);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int second = sc.nextInt(); second sc.nextInt() sc.nextInt sc sc.close() sc.close sc int h = 0 h 0 m = 0 m 0 s = 0; s 0 if(second != 0){
			h = (int)(Math.floor(second / 3600));
			m = (int)(Math.floor(second / 60)) % 60;
			s = second % 60;
		} second != 0 second 0 {
			h = (int)(Math.floor(second / 3600));
			m = (int)(Math.floor(second / 60)) % 60;
			s = second % 60;
		} h = (int)(Math.floor(second / 3600)) h (int)(Math.floor(second / 3600)) Math.floor Math second / 3600 second 3600 m = (int)(Math.floor(second / 60)) % 60 m (int)(Math.floor(second / 60)) % 60 (int)(Math.floor(second / 60)) Math.floor Math second / 60 second 60 60 s = second % 60 s second % 60 second 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 public class Main {

	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int second = sc.nextInt();
		sc.close();

		int h = 0,m = 0,s = 0;

		if(second != 0){
			h = (int)(Math.floor(second / 3600));
			m = (int)(Math.floor(second / 60)) % 60;
			s = second % 60;
		}
		System.out.println(h+":"+m+":"+s);
	}

} public class Main {

	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int second = sc.nextInt();
		sc.close();

		int h = 0,m = 0,s = 0;

		if(second != 0){
			h = (int)(Math.floor(second / 3600));
			m = (int)(Math.floor(second / 60)) % 60;
			s = second % 60;
		}
		System.out.println(h+":"+m+":"+s);
	}

} Main
import java.util.Scanner;


public class Main {

	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int second = sc.nextInt();
		sc.close();

		int h = 0,m = 0,s = 0;

		if(second != 0){
			h = (int)(Math.floor(second / 3600));
			m = (int)(Math.floor(second / 60)) % 60;
			s = second % 60;
		}
		System.out.println(h+":"+m+":"+s);
	}

}