import java.io.IOException;
import java.util.Scanner;
 
public class Main {
 
    public static void main(String[] args) throws IOException {
             
       Scanner sc = new Scanner(System.in);
       int s = sc.nextInt();
       int h = 0;
       int m = 0;
       
       while(s>=3600){
    	   s = s-3600;
       h++;
       }
       
       while(s>=60){
           s = s-60; 
       m++;
       
       
       }
      
       
       System.out.println(h+":"+m+":"+s);
           
         
    }
} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main {
 
    public static void main(String[] args) throws IOException {
             
       Scanner sc = new Scanner(System.in);
       int s = sc.nextInt();
       int h = 0;
       int m = 0;
       
       while(s>=3600){
    	   s = s-3600;
       h++;
       }
       
       while(s>=60){
           s = s-60; 
       m++;
       
       
       }
      
       
       System.out.println(h+":"+m+":"+s);
           
         
    }
} Main public static void main(String[] args) throws IOException {
             
       Scanner sc = new Scanner(System.in);
       int s = sc.nextInt();
       int h = 0;
       int m = 0;
       
       while(s>=3600){
    	   s = s-3600;
       h++;
       }
       
       while(s>=60){
           s = s-60; 
       m++;
       
       
       }
      
       
       System.out.println(h+":"+m+":"+s);
           
         
    } main {
             
       Scanner sc = new Scanner(System.in);
       int s = sc.nextInt();
       int h = 0;
       int m = 0;
       
       while(s>=3600){
    	   s = s-3600;
       h++;
       }
       
       while(s>=60){
           s = s-60; 
       m++;
       
       
       }
      
       
       System.out.println(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 = 0; h 0 int m = 0; m 0 while(s>=3600){
    	   s = s-3600;
       h++;
       } s>=3600 s 3600 {
    	   s = s-3600;
       h++;
       } s = s-3600 s s-3600 s 3600 h++ h while(s>=60){
           s = s-60; 
       m++;
       
       
       } s>=60 s 60 {
           s = s-60; 
       m++;
       
       
       } s = s-60 s s-60 s 60 m++ m 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[] args args public class Main {
 
    public static void main(String[] args) throws IOException {
             
       Scanner sc = new Scanner(System.in);
       int s = sc.nextInt();
       int h = 0;
       int m = 0;
       
       while(s>=3600){
    	   s = s-3600;
       h++;
       }
       
       while(s>=60){
           s = s-60; 
       m++;
       
       
       }
      
       
       System.out.println(h+":"+m+":"+s);
           
         
    }
} public class Main {
 
    public static void main(String[] args) throws IOException {
             
       Scanner sc = new Scanner(System.in);
       int s = sc.nextInt();
       int h = 0;
       int m = 0;
       
       while(s>=3600){
    	   s = s-3600;
       h++;
       }
       
       while(s>=60){
           s = s-60; 
       m++;
       
       
       }
      
       
       System.out.println(h+":"+m+":"+s);
           
         
    }
} Main
import java.io.IOException;
import java.util.Scanner;
 
public class Main {
 
    public static void main(String[] args) throws IOException {
             
       Scanner sc = new Scanner(System.in);
       int s = sc.nextInt();
       int h = 0;
       int m = 0;
       
       while(s>=3600){
    	   s = s-3600;
       h++;
       }
       
       while(s>=60){
           s = s-60; 
       m++;
       
       
       }
      
       
       System.out.println(h+":"+m+":"+s);
           
         
    }
}