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

class Main
{
	public static void main (String[] args) throws IOException
	{
		String S;
		int time,h,m,s;
		
		Scanner in = new Scanner(System.in);
		
		S = in.nextLine();
		
		time = Integer.parseInt(S);
		
		h = time / 3600;
		m = (time - h * 3600) / 60;
		s = (time - h * 3600) % 60;
		
		System.out.println(h + ":"  + m + ":" + s);
	}
} import java.io.*; io.* java import java.util.Scanner; Scanner java.util class Main
{
	public static void main (String[] args) throws IOException
	{
		String S;
		int time,h,m,s;
		
		Scanner in = new Scanner(System.in);
		
		S = in.nextLine();
		
		time = Integer.parseInt(S);
		
		h = time / 3600;
		m = (time - h * 3600) / 60;
		s = (time - h * 3600) % 60;
		
		System.out.println(h + ":"  + m + ":" + s);
	}
} Main public static void main (String[] args) throws IOException
	{
		String S;
		int time,h,m,s;
		
		Scanner in = new Scanner(System.in);
		
		S = in.nextLine();
		
		time = Integer.parseInt(S);
		
		h = time / 3600;
		m = (time - h * 3600) / 60;
		s = (time - h * 3600) % 60;
		
		System.out.println(h + ":"  + m + ":" + s);
	} main {
		String S;
		int time,h,m,s;
		
		Scanner in = new Scanner(System.in);
		
		S = in.nextLine();
		
		time = Integer.parseInt(S);
		
		h = time / 3600;
		m = (time - h * 3600) / 60;
		s = (time - h * 3600) % 60;
		
		System.out.println(h + ":"  + m + ":" + s);
	} String S; S int time time h h m m s; s Scanner in = new Scanner(System.in); in new Scanner(System.in) S = in.nextLine() S in.nextLine() in.nextLine in time = Integer.parseInt(S) time Integer.parseInt(S) Integer.parseInt Integer S h = time / 3600 h time / 3600 time 3600 m = (time - h * 3600) / 60 m (time - h * 3600) / 60 (time - h * 3600) time h * 3600 h 3600 60 s = (time - h * 3600) % 60 s (time - h * 3600) % 60 (time - h * 3600) time h * 3600 h 3600 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.util.Scanner;

class Main
{
	public static void main (String[] args) throws IOException
	{
		String S;
		int time,h,m,s;
		
		Scanner in = new Scanner(System.in);
		
		S = in.nextLine();
		
		time = Integer.parseInt(S);
		
		h = time / 3600;
		m = (time - h * 3600) / 60;
		s = (time - h * 3600) % 60;
		
		System.out.println(h + ":"  + m + ":" + s);
	}
}