import java.util.Scanner;

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

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