import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
public class Main
//class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		BufferedReader stdReader =
            new BufferedReader(new InputStreamReader(System.in));
        String line = stdReader.readLine();
        
        int a = Integer.parseInt(line);
        
        System.out.println( (a / 3600) + ":" + ( (a / 60) % 60 ) +":" + (a % 60) );
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main
//class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		BufferedReader stdReader =
            new BufferedReader(new InputStreamReader(System.in));
        String line = stdReader.readLine();
        
        int a = Integer.parseInt(line);
        
        System.out.println( (a / 3600) + ":" + ( (a / 60) % 60 ) +":" + (a % 60) );
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		BufferedReader stdReader =
            new BufferedReader(new InputStreamReader(System.in));
        String line = stdReader.readLine();
        
        int a = Integer.parseInt(line);
        
        System.out.println( (a / 3600) + ":" + ( (a / 60) % 60 ) +":" + (a % 60) );
	} main {
		// your code goes here
		BufferedReader stdReader =
            new BufferedReader(new InputStreamReader(System.in));
        String line = stdReader.readLine();
        
        int a = Integer.parseInt(line);
        
        System.out.println( (a / 3600) + ":" + ( (a / 60) % 60 ) +":" + (a % 60) );
	} BufferedReader stdReader =
            new BufferedReader(new InputStreamReader(System.in)); stdReader new BufferedReader(new InputStreamReader(System.in)) String line = stdReader.readLine(); line stdReader.readLine() stdReader.readLine stdReader int a = Integer.parseInt(line); a Integer.parseInt(line) Integer.parseInt Integer line System.out.println( (a / 3600) + ":" + ( (a / 60) % 60 ) +":" + (a % 60) ) System.out.println System.out System System.out (a / 3600) + ":" + ( (a / 60) % 60 ) +":" + (a % 60) ":" ( (a / 60) % 60 ) (a / 3600) + ":" + ( (a / 60) % 60 ) +":" + (a % 60) (a / 3600) a 3600 ":" ( (a / 60) % 60 ) (a / 60) a 60 60 ":" (a % 60) a 60 String[] args args public class Main
//class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		BufferedReader stdReader =
            new BufferedReader(new InputStreamReader(System.in));
        String line = stdReader.readLine();
        
        int a = Integer.parseInt(line);
        
        System.out.println( (a / 3600) + ":" + ( (a / 60) % 60 ) +":" + (a % 60) );
	}
} public class Main
//class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		BufferedReader stdReader =
            new BufferedReader(new InputStreamReader(System.in));
        String line = stdReader.readLine();
        
        int a = Integer.parseInt(line);
        
        System.out.println( (a / 3600) + ":" + ( (a / 60) % 60 ) +":" + (a % 60) );
	}
} Main
import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
public class Main
//class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		BufferedReader stdReader =
            new BufferedReader(new InputStreamReader(System.in));
        String line = stdReader.readLine();
        
        int a = Integer.parseInt(line);
        
        System.out.println( (a / 3600) + ":" + ( (a / 60) % 60 ) +":" + (a % 60) );
	}
}