import java.io.*;

class Main
{
    public static void main(String[] args) throws IOException
    {
	BufferedReader br = 
	    new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();
	int seconds = Integer.parseInt(str);
	if(seconds == 0)
	    {
		System.out.println("0:0:0");
	    }else{
	    int sec = seconds % 60;
	    int min =(seconds/60) % 60;
	    int hour =seconds / 3600;
	    
	    System.out.println(hour + ":" + min + ":" + sec);
        }
    }
} import java.io.*; io.* java class Main
{
    public static void main(String[] args) throws IOException
    {
	BufferedReader br = 
	    new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();
	int seconds = Integer.parseInt(str);
	if(seconds == 0)
	    {
		System.out.println("0:0:0");
	    }else{
	    int sec = seconds % 60;
	    int min =(seconds/60) % 60;
	    int hour =seconds / 3600;
	    
	    System.out.println(hour + ":" + min + ":" + sec);
        }
    }
} Main public static void main(String[] args) throws IOException
    {
	BufferedReader br = 
	    new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();
	int seconds = Integer.parseInt(str);
	if(seconds == 0)
	    {
		System.out.println("0:0:0");
	    }else{
	    int sec = seconds % 60;
	    int min =(seconds/60) % 60;
	    int hour =seconds / 3600;
	    
	    System.out.println(hour + ":" + min + ":" + sec);
        }
    } main {
	BufferedReader br = 
	    new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();
	int seconds = Integer.parseInt(str);
	if(seconds == 0)
	    {
		System.out.println("0:0:0");
	    }else{
	    int sec = seconds % 60;
	    int min =(seconds/60) % 60;
	    int hour =seconds / 3600;
	    
	    System.out.println(hour + ":" + min + ":" + sec);
        }
    } BufferedReader br = 
	    new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br int seconds = Integer.parseInt(str); seconds Integer.parseInt(str) Integer.parseInt Integer str if(seconds == 0)
	    {
		System.out.println("0:0:0");
	    }else{
	    int sec = seconds % 60;
	    int min =(seconds/60) % 60;
	    int hour =seconds / 3600;
	    
	    System.out.println(hour + ":" + min + ":" + sec);
        } seconds == 0 seconds 0 {
		System.out.println("0:0:0");
	    } System.out.println("0:0:0") System.out.println System.out System System.out "0:0:0" {
	    int sec = seconds % 60;
	    int min =(seconds/60) % 60;
	    int hour =seconds / 3600;
	    
	    System.out.println(hour + ":" + min + ":" + sec);
        } int sec = seconds % 60; sec seconds % 60 seconds 60 int min =(seconds/60) % 60; min (seconds/60) % 60 (seconds/60) seconds 60 60 int hour =seconds / 3600; hour seconds / 3600 seconds 3600 System.out.println(hour + ":" + min + ":" + sec) System.out.println System.out System System.out hour + ":" + min + ":" + sec ":" min hour + ":" + min + ":" + sec hour ":" min ":" sec String[] args args
import java.io.*;

class Main
{
    public static void main(String[] args) throws IOException
    {
	BufferedReader br = 
	    new BufferedReader(new InputStreamReader(System.in));
	String str = br.readLine();
	int seconds = Integer.parseInt(str);
	if(seconds == 0)
	    {
		System.out.println("0:0:0");
	    }else{
	    int sec = seconds % 60;
	    int min =(seconds/60) % 60;
	    int hour =seconds / 3600;
	    
	    System.out.println(hour + ":" + min + ":" + sec);
        }
    }
}