
import java.util.*;

class Main {
		public static void main (String[]agrs){
			int s;
			int m;
			int h;
			Scanner sc = new Scanner(System.in);
			 s =sc.nextInt();
			 m =s/60;
			 h=m/60;
			 s=s%60;
			 m=m%60;
			 h=h%60;
			 System.out.println(h+":"+m+":"+s);
			 
			
		
	 
	}

} import java.util.*; util.* java class Main {
		public static void main (String[]agrs){
			int s;
			int m;
			int h;
			Scanner sc = new Scanner(System.in);
			 s =sc.nextInt();
			 m =s/60;
			 h=m/60;
			 s=s%60;
			 m=m%60;
			 h=h%60;
			 System.out.println(h+":"+m+":"+s);
			 
			
		
	 
	}

} Main public static void main (String[]agrs){
			int s;
			int m;
			int h;
			Scanner sc = new Scanner(System.in);
			 s =sc.nextInt();
			 m =s/60;
			 h=m/60;
			 s=s%60;
			 m=m%60;
			 h=h%60;
			 System.out.println(h+":"+m+":"+s);
			 
			
		
	 
	} main {
			int s;
			int m;
			int h;
			Scanner sc = new Scanner(System.in);
			 s =sc.nextInt();
			 m =s/60;
			 h=m/60;
			 s=s%60;
			 m=m%60;
			 h=h%60;
			 System.out.println(h+":"+m+":"+s);
			 
			
		
	 
	} int s; s int m; m int h; h Scanner sc = new Scanner(System.in); sc new Scanner(System.in) s =sc.nextInt() s sc.nextInt() sc.nextInt sc m =s/60 m s/60 s 60 h=m/60 h m/60 m 60 s=s%60 s s%60 s 60 m=m%60 m m%60 m 60 h=h%60 h h%60 h 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[]agrs agrs

import java.util.*;

class Main {
		public static void main (String[]agrs){
			int s;
			int m;
			int h;
			Scanner sc = new Scanner(System.in);
			 s =sc.nextInt();
			 m =s/60;
			 h=m/60;
			 s=s%60;
			 m=m%60;
			 h=h%60;
			 System.out.println(h+":"+m+":"+s);
			 
			
		
	 
	}

}