import java.io.*;

class Main{
	public static void main(String[] args) throws IOException{
		int a = 60*60;
		int b = 60;
		int x,h,m,s;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		x = Integer.parseInt(str);
		h = x/a;
		m = (x%a)/b;
		s = (x%a)%b;
		System.out.println(h + ":" + m + ":" + s);
	}
} import java.io.*; io.* java class Main{
	public static void main(String[] args) throws IOException{
		int a = 60*60;
		int b = 60;
		int x,h,m,s;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		x = Integer.parseInt(str);
		h = x/a;
		m = (x%a)/b;
		s = (x%a)%b;
		System.out.println(h + ":" + m + ":" + s);
	}
} Main public static void main(String[] args) throws IOException{
		int a = 60*60;
		int b = 60;
		int x,h,m,s;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		x = Integer.parseInt(str);
		h = x/a;
		m = (x%a)/b;
		s = (x%a)%b;
		System.out.println(h + ":" + m + ":" + s);
	} main {
		int a = 60*60;
		int b = 60;
		int x,h,m,s;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		x = Integer.parseInt(str);
		h = x/a;
		m = (x%a)/b;
		s = (x%a)%b;
		System.out.println(h + ":" + m + ":" + s);
	} int a = 60*60; a 60*60 60 60 int b = 60; b 60 int x x h h m m s; s 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 x = Integer.parseInt(str) x Integer.parseInt(str) Integer.parseInt Integer str h = x/a h x/a x a m = (x%a)/b m (x%a)/b (x%a) x a b s = (x%a)%b s (x%a)%b (x%a) x a b 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.*;

class Main{
	public static void main(String[] args) throws IOException{
		int a = 60*60;
		int b = 60;
		int x,h,m,s;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		x = Integer.parseInt(str);
		h = x/a;
		m = (x%a)/b;
		s = (x%a)%b;
		System.out.println(h + ":" + m + ":" + s);
	}
}