import java.util.Scanner;
public class Main{
     
    public void solve(){
		Scanner sc = new Scanner(System.in);
		
        int h,m,s;
		int jikan = sc.nextInt();
		
			h = jikan / 3600;
			m = (jikan - h * 3600 ) / 60;
			s = ((jikan - h * 3600 ) - m *60);
			
			System.out.println(h+":"+m+":"+s);
		
    }

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

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

       public static void main(String[]args){
        Main obj = new Main();
        obj.solve();
     }
} public class Main{
     
    public void solve(){
		Scanner sc = new Scanner(System.in);
		
        int h,m,s;
		int jikan = sc.nextInt();
		
			h = jikan / 3600;
			m = (jikan - h * 3600 ) / 60;
			s = ((jikan - h * 3600 ) - m *60);
			
			System.out.println(h+":"+m+":"+s);
		
    }

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

       public static void main(String[]args){
        Main obj = new Main();
        obj.solve();
     }
}