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

class Main
{
    public static void main(String[] args)
    {
	Scanner sc = new Scanner(System.in);
	
int se =sc.nextInt();

int sec, min, hour;
hour = se/3600;
min =(se%3600)/60;
sec = se % 60;

System.out.println(hour+":"+min+":"+sec);

    }
} 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 se =sc.nextInt();

int sec, min, hour;
hour = se/3600;
min =(se%3600)/60;
sec = se % 60;

System.out.println(hour+":"+min+":"+sec);

    }
} Main public static void main(String[] args)
    {
	Scanner sc = new Scanner(System.in);
	
int se =sc.nextInt();

int sec, min, hour;
hour = se/3600;
min =(se%3600)/60;
sec = se % 60;

System.out.println(hour+":"+min+":"+sec);

    } main {
	Scanner sc = new Scanner(System.in);
	
int se =sc.nextInt();

int sec, min, hour;
hour = se/3600;
min =(se%3600)/60;
sec = se % 60;

System.out.println(hour+":"+min+":"+sec);

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int se =sc.nextInt(); se sc.nextInt() sc.nextInt sc int sec sec min min hour; hour hour = se/3600 hour se/3600 se 3600 min =(se%3600)/60 min (se%3600)/60 (se%3600) se 3600 60 sec = se % 60 sec se % 60 se 60 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.*;
import java.util.*;

class Main
{
    public static void main(String[] args)
    {
	Scanner sc = new Scanner(System.in);
	
int se =sc.nextInt();

int sec, min, hour;
hour = se/3600;
min =(se%3600)/60;
sec = se % 60;

System.out.println(hour+":"+min+":"+sec);

    }
}
