import java.util.*;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
	    
		int S = sc.nextInt();
		
		int h = S / 3600;
		S = S % 3600;
		
		int m = S / 60;
		S = S % 60;
		
		System.out.printf("%d:%d:%d\n", h, m, S);


	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
	    
		int S = sc.nextInt();
		
		int h = S / 3600;
		S = S % 3600;
		
		int m = S / 60;
		S = S % 60;
		
		System.out.printf("%d:%d:%d\n", h, m, S);


	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
	    
		int S = sc.nextInt();
		
		int h = S / 3600;
		S = S % 3600;
		
		int m = S / 60;
		S = S % 60;
		
		System.out.printf("%d:%d:%d\n", h, m, S);


	} main {
		Scanner sc = new Scanner(System.in);
	    
		int S = sc.nextInt();
		
		int h = S / 3600;
		S = S % 3600;
		
		int m = S / 60;
		S = S % 60;
		
		System.out.printf("%d:%d:%d\n", h, m, S);


	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int S = sc.nextInt(); S sc.nextInt() sc.nextInt sc int h = S / 3600; h S / 3600 S 3600 S = S % 3600 S S % 3600 S 3600 int m = S / 60; m S / 60 S 60 S = S % 60 S S % 60 S 60 System.out.printf("%d:%d:%d\n", h, m, S) System.out.printf System.out System System.out "%d:%d:%d\n" h m S String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
	    
		int S = sc.nextInt();
		
		int h = S / 3600;
		S = S % 3600;
		
		int m = S / 60;
		S = S % 60;
		
		System.out.printf("%d:%d:%d\n", h, m, S);


	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
	    
		int S = sc.nextInt();
		
		int h = S / 3600;
		S = S % 3600;
		
		int m = S / 60;
		S = S % 60;
		
		System.out.printf("%d:%d:%d\n", h, m, S);


	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
	    
		int S = sc.nextInt();
		
		int h = S / 3600;
		S = S % 3600;
		
		int m = S / 60;
		S = S % 60;
		
		System.out.printf("%d:%d:%d\n", h, m, S);


	}
}