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