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

class Main
{
    public static void main(String[] args)
    {
	Scanner sc = new Scanner(System.in);
	int timeSec = sc.nextInt();
	
	int timeHour = timeSec / 3600;
	timeSec %= 3600;
	
	int timeMin = timeSec / 60;
	timeSec %= 60;
	
	System.out.println(timeHour + ":" + timeMin + ":" + timeSec);
    }
} import java.io.*; io.* java import java.util.*; util.* java class Main
{
    public static void main(String[] args)
    {
	Scanner sc = new Scanner(System.in);
	int timeSec = sc.nextInt();
	
	int timeHour = timeSec / 3600;
	timeSec %= 3600;
	
	int timeMin = timeSec / 60;
	timeSec %= 60;
	
	System.out.println(timeHour + ":" + timeMin + ":" + timeSec);
    }
} Main public static void main(String[] args)
    {
	Scanner sc = new Scanner(System.in);
	int timeSec = sc.nextInt();
	
	int timeHour = timeSec / 3600;
	timeSec %= 3600;
	
	int timeMin = timeSec / 60;
	timeSec %= 60;
	
	System.out.println(timeHour + ":" + timeMin + ":" + timeSec);
    } main {
	Scanner sc = new Scanner(System.in);
	int timeSec = sc.nextInt();
	
	int timeHour = timeSec / 3600;
	timeSec %= 3600;
	
	int timeMin = timeSec / 60;
	timeSec %= 60;
	
	System.out.println(timeHour + ":" + timeMin + ":" + timeSec);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int timeSec = sc.nextInt(); timeSec sc.nextInt() sc.nextInt sc int timeHour = timeSec / 3600; timeHour timeSec / 3600 timeSec 3600 timeSec %= 3600 timeSec 3600 int timeMin = timeSec / 60; timeMin timeSec / 60 timeSec 60 timeSec %= 60 timeSec 60 System.out.println(timeHour + ":" + timeMin + ":" + timeSec) System.out.println System.out System System.out timeHour + ":" + timeMin + ":" + timeSec ":" timeMin timeHour + ":" + timeMin + ":" + timeSec timeHour ":" timeMin ":" timeSec String[] args args
import java.io.*;
import java.util.*;

class Main
{
    public static void main(String[] args)
    {
	Scanner sc = new Scanner(System.in);
	int timeSec = sc.nextInt();
	
	int timeHour = timeSec / 3600;
	timeSec %= 3600;
	
	int timeMin = timeSec / 60;
	timeSec %= 60;
	
	System.out.println(timeHour + ":" + timeMin + ":" + timeSec);
    }
}