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

class Main {
	public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			String buf = br.readLine();
			int s = Integer.parseInt(buf);
			int h = s / 3600;
			s = s % 3600;
			int m = s / 60;
			s = s % 60;
			System.out.println(h + ":" + m + ":" + s);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {
	public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			String buf = br.readLine();
			int s = Integer.parseInt(buf);
			int h = s / 3600;
			s = s % 3600;
			int m = s / 60;
			s = s % 60;
			System.out.println(h + ":" + m + ":" + s);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			String buf = br.readLine();
			int s = Integer.parseInt(buf);
			int h = s / 3600;
			s = s % 3600;
			int m = s / 60;
			s = s % 60;
			System.out.println(h + ":" + m + ":" + s);
		} catch (IOException e) {
			e.printStackTrace();
		}
	} main {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			String buf = br.readLine();
			int s = Integer.parseInt(buf);
			int h = s / 3600;
			s = s % 3600;
			int m = s / 60;
			s = s % 60;
			System.out.println(h + ":" + m + ":" + s);
		} catch (IOException e) {
			e.printStackTrace();
		}
	} InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) try {
			String buf = br.readLine();
			int s = Integer.parseInt(buf);
			int h = s / 3600;
			s = s % 3600;
			int m = s / 60;
			s = s % 60;
			System.out.println(h + ":" + m + ":" + s);
		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			String buf = br.readLine();
			int s = Integer.parseInt(buf);
			int h = s / 3600;
			s = s % 3600;
			int m = s / 60;
			s = s % 60;
			System.out.println(h + ":" + m + ":" + s);
		} String buf = br.readLine(); buf br.readLine() br.readLine br int s = Integer.parseInt(buf); s Integer.parseInt(buf) Integer.parseInt Integer buf int h = s / 3600; h s / 3600 s 3600 s = s % 3600 s s % 3600 s 3600 int m = s / 60; m s / 60 s 60 s = s % 60 s s % 60 s 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.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
	public static void main(String[] args) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try {
			String buf = br.readLine();
			int s = Integer.parseInt(buf);
			int h = s / 3600;
			s = s % 3600;
			int m = s / 60;
			s = s % 60;
			System.out.println(h + ":" + m + ":" + s);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}