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

public class Main {
	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		int henkan = Integer.parseInt(line);

		int hour = henkan / 3600;
		int minute = henkan % 3600 / 60;
		int second = henkan % 3600 % 60;

		System.out.println(hour + ":" + minute + ":" + second);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		int henkan = Integer.parseInt(line);

		int hour = henkan / 3600;
		int minute = henkan % 3600 / 60;
		int second = henkan % 3600 % 60;

		System.out.println(hour + ":" + minute + ":" + second);
	}
} Main public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		int henkan = Integer.parseInt(line);

		int hour = henkan / 3600;
		int minute = henkan % 3600 / 60;
		int second = henkan % 3600 % 60;

		System.out.println(hour + ":" + minute + ":" + second);
	} main {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		int henkan = Integer.parseInt(line);

		int hour = henkan / 3600;
		int minute = henkan % 3600 / 60;
		int second = henkan % 3600 % 60;

		System.out.println(hour + ":" + minute + ":" + second);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br int henkan = Integer.parseInt(line); henkan Integer.parseInt(line) Integer.parseInt Integer line int hour = henkan / 3600; hour henkan / 3600 henkan 3600 int minute = henkan % 3600 / 60; minute henkan % 3600 / 60 henkan % 3600 henkan 3600 60 int second = henkan % 3600 % 60; second henkan % 3600 % 60 henkan % 3600 % 60 henkan 3600 60 System.out.println(hour + ":" + minute + ":" + second) System.out.println System.out System System.out hour + ":" + minute + ":" + second ":" minute hour + ":" + minute + ":" + second hour ":" minute ":" second String[] args args public class Main {
	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		int henkan = Integer.parseInt(line);

		int hour = henkan / 3600;
		int minute = henkan % 3600 / 60;
		int second = henkan % 3600 % 60;

		System.out.println(hour + ":" + minute + ":" + second);
	}
} public class Main {
	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		int henkan = Integer.parseInt(line);

		int hour = henkan / 3600;
		int minute = henkan % 3600 / 60;
		int second = henkan % 3600 % 60;

		System.out.println(hour + ":" + minute + ":" + second);
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws Exception {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		int henkan = Integer.parseInt(line);

		int hour = henkan / 3600;
		int minute = henkan % 3600 / 60;
		int second = henkan % 3600 % 60;

		System.out.println(hour + ":" + minute + ":" + second);
	}
}