import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		int S;
		Scanner scanner=new Scanner(System.in);
		S=scanner.nextInt();
		
		
	    int s,m,h;
	    if(0<=S&S<86400){
	    s=S%60;
	    m=(S-s)%3600;
	    h=(S-m-s)/3600;
	    
	    
	    System.out.println(h+":"+m/60+":"+s);

	}

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

	public static void main(String[] args) {
		int S;
		Scanner scanner=new Scanner(System.in);
		S=scanner.nextInt();
		
		
	    int s,m,h;
	    if(0<=S&S<86400){
	    s=S%60;
	    m=(S-s)%3600;
	    h=(S-m-s)/3600;
	    
	    
	    System.out.println(h+":"+m/60+":"+s);

	}

}
} Main public static void main(String[] args) {
		int S;
		Scanner scanner=new Scanner(System.in);
		S=scanner.nextInt();
		
		
	    int s,m,h;
	    if(0<=S&S<86400){
	    s=S%60;
	    m=(S-s)%3600;
	    h=(S-m-s)/3600;
	    
	    
	    System.out.println(h+":"+m/60+":"+s);

	}

} main {
		int S;
		Scanner scanner=new Scanner(System.in);
		S=scanner.nextInt();
		
		
	    int s,m,h;
	    if(0<=S&S<86400){
	    s=S%60;
	    m=(S-s)%3600;
	    h=(S-m-s)/3600;
	    
	    
	    System.out.println(h+":"+m/60+":"+s);

	}

} int S; S Scanner scanner=new Scanner(System.in); scanner new Scanner(System.in) S=scanner.nextInt() S scanner.nextInt() scanner.nextInt scanner int s s m m h; h if(0<=S&S<86400){
	    s=S%60;
	    m=(S-s)%3600;
	    h=(S-m-s)/3600;
	    
	    
	    System.out.println(h+":"+m/60+":"+s);

	} 0<=S&S<86400 0<=S 0 S S<86400 S 86400 {
	    s=S%60;
	    m=(S-s)%3600;
	    h=(S-m-s)/3600;
	    
	    
	    System.out.println(h+":"+m/60+":"+s);

	} s=S%60 s S%60 S 60 m=(S-s)%3600 m (S-s)%3600 (S-s) S s 3600 h=(S-m-s)/3600 h (S-m-s)/3600 (S-m-s) S-m-s S m s 3600 System.out.println(h+":"+m/60+":"+s) System.out.println System.out System System.out h+":"+m/60+":"+s ":" m/60 h+":"+m/60+":"+s h ":" m/60 m 60 ":" s String[] args args public class Main {

	public static void main(String[] args) {
		int S;
		Scanner scanner=new Scanner(System.in);
		S=scanner.nextInt();
		
		
	    int s,m,h;
	    if(0<=S&S<86400){
	    s=S%60;
	    m=(S-s)%3600;
	    h=(S-m-s)/3600;
	    
	    
	    System.out.println(h+":"+m/60+":"+s);

	}

}
} public class Main {

	public static void main(String[] args) {
		int S;
		Scanner scanner=new Scanner(System.in);
		S=scanner.nextInt();
		
		
	    int s,m,h;
	    if(0<=S&S<86400){
	    s=S%60;
	    m=(S-s)%3600;
	    h=(S-m-s)/3600;
	    
	    
	    System.out.println(h+":"+m/60+":"+s);

	}

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

	public static void main(String[] args) {
		int S;
		Scanner scanner=new Scanner(System.in);
		S=scanner.nextInt();
		
		
	    int s,m,h;
	    if(0<=S&S<86400){
	    s=S%60;
	    m=(S-s)%3600;
	    h=(S-m-s)/3600;
	    
	    
	    System.out.println(h+":"+m/60+":"+s);

	}

}
}
