import java.io.*;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
import java.io.*;

class Main
{
 public static void main(String[] args) throws IOException
 {
	 Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
 
 int h = n/3600;
 int m = n%3600/60;
 int s = n%60;
 
 System.out.println(h+":"+m+":"+s);
 }
} import java.io.*; io.* java import java.io.IOException; IOException java.io import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.*; util.* java import java.io.*; io.* java class Main
{
 public static void main(String[] args) throws IOException
 {
	 Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
 
 int h = n/3600;
 int m = n%3600/60;
 int s = n%60;
 
 System.out.println(h+":"+m+":"+s);
 }
} Main public static void main(String[] args) throws IOException
 {
	 Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
 
 int h = n/3600;
 int m = n%3600/60;
 int s = n%60;
 
 System.out.println(h+":"+m+":"+s);
 } main {
	 Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
 
 int h = n/3600;
 int m = n%3600/60;
 int s = n%60;
 
 System.out.println(h+":"+m+":"+s);
 } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int h = n/3600; h n/3600 n 3600 int m = n%3600/60; m n%3600/60 n%3600 n 3600 60 int s = n%60; s n%60 n 60 System.out.println(h+":"+m+":"+s) System.out.println System.out System System.out h+":"+m+":"+s ":" m h+":"+m+":"+s h ":" m ":" s String[] args args
import java.io.*;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
import java.io.*;

class Main
{
 public static void main(String[] args) throws IOException
 {
	 Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
 
 int h = n/3600;
 int m = n%3600/60;
 int s = n%60;
 
 System.out.println(h+":"+m+":"+s);
 }
}