
import java.util.Scanner;

public class Main
{
    public static void main(String[] args)
    {
        Scanner scan = new Scanner(System.in);
        
        int S = scan.nextInt();
        int h = 3600;
        int m = 60;
        
                
        System.out.print(S/h +":");
        System.out.print((S%h)/m +":");
         System.out.println((S%h)%m);
                    
    }
}
 import java.util.Scanner; Scanner java.util public class Main
{
    public static void main(String[] args)
    {
        Scanner scan = new Scanner(System.in);
        
        int S = scan.nextInt();
        int h = 3600;
        int m = 60;
        
                
        System.out.print(S/h +":");
        System.out.print((S%h)/m +":");
         System.out.println((S%h)%m);
                    
    }
} Main public static void main(String[] args)
    {
        Scanner scan = new Scanner(System.in);
        
        int S = scan.nextInt();
        int h = 3600;
        int m = 60;
        
                
        System.out.print(S/h +":");
        System.out.print((S%h)/m +":");
         System.out.println((S%h)%m);
                    
    } main {
        Scanner scan = new Scanner(System.in);
        
        int S = scan.nextInt();
        int h = 3600;
        int m = 60;
        
                
        System.out.print(S/h +":");
        System.out.print((S%h)/m +":");
         System.out.println((S%h)%m);
                    
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int S = scan.nextInt(); S scan.nextInt() scan.nextInt scan int h = 3600; h 3600 int m = 60; m 60 System.out.print(S/h +":") System.out.print System.out System System.out S/h +":" S/h S h ":" System.out.print((S%h)/m +":") System.out.print System.out System System.out (S%h)/m +":" (S%h)/m (S%h) S h m ":" System.out.println((S%h)%m) System.out.println System.out System System.out (S%h)%m (S%h) S h m String[] args args public class Main
{
    public static void main(String[] args)
    {
        Scanner scan = new Scanner(System.in);
        
        int S = scan.nextInt();
        int h = 3600;
        int m = 60;
        
                
        System.out.print(S/h +":");
        System.out.print((S%h)/m +":");
         System.out.println((S%h)%m);
                    
    }
} public class Main
{
    public static void main(String[] args)
    {
        Scanner scan = new Scanner(System.in);
        
        int S = scan.nextInt();
        int h = 3600;
        int m = 60;
        
                
        System.out.print(S/h +":");
        System.out.print((S%h)/m +":");
         System.out.println((S%h)%m);
                    
    }
} Main

import java.util.Scanner;

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

