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

public class Main {
	public static void main(String[] args) throws IOException {
		print();
	}

	private static void print() throws IOException {
		int allSecond = 0;
		int hour = 0;
		int minute = 0;
		int second = 0;

		int tempHH = 1;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		allSecond = Integer.valueOf(str);

		hour = allSecond / 3600;
		tempHH =allSecond % 3600;
		minute = tempHH / 60;
		second = tempHH % 60;




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

	}


} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws IOException {
		print();
	}

	private static void print() throws IOException {
		int allSecond = 0;
		int hour = 0;
		int minute = 0;
		int second = 0;

		int tempHH = 1;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		allSecond = Integer.valueOf(str);

		hour = allSecond / 3600;
		tempHH =allSecond % 3600;
		minute = tempHH / 60;
		second = tempHH % 60;




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

	}


} Main public static void main(String[] args) throws IOException {
		print();
	} main {
		print();
	} print() print String[] args args private static void print() throws IOException {
		int allSecond = 0;
		int hour = 0;
		int minute = 0;
		int second = 0;

		int tempHH = 1;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		allSecond = Integer.valueOf(str);

		hour = allSecond / 3600;
		tempHH =allSecond % 3600;
		minute = tempHH / 60;
		second = tempHH % 60;




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

	} print {
		int allSecond = 0;
		int hour = 0;
		int minute = 0;
		int second = 0;

		int tempHH = 1;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		allSecond = Integer.valueOf(str);

		hour = allSecond / 3600;
		tempHH =allSecond % 3600;
		minute = tempHH / 60;
		second = tempHH % 60;




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

	} int allSecond = 0; allSecond 0 int hour = 0; hour 0 int minute = 0; minute 0 int second = 0; second 0 int tempHH = 1; tempHH 1 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 allSecond = Integer.valueOf(str) allSecond Integer.valueOf(str) Integer.valueOf Integer str hour = allSecond / 3600 hour allSecond / 3600 allSecond 3600 tempHH =allSecond % 3600 tempHH allSecond % 3600 allSecond 3600 minute = tempHH / 60 minute tempHH / 60 tempHH 60 second = tempHH % 60 second tempHH % 60 tempHH 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 public class Main {
	public static void main(String[] args) throws IOException {
		print();
	}

	private static void print() throws IOException {
		int allSecond = 0;
		int hour = 0;
		int minute = 0;
		int second = 0;

		int tempHH = 1;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		allSecond = Integer.valueOf(str);

		hour = allSecond / 3600;
		tempHH =allSecond % 3600;
		minute = tempHH / 60;
		second = tempHH % 60;




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

	}


} public class Main {
	public static void main(String[] args) throws IOException {
		print();
	}

	private static void print() throws IOException {
		int allSecond = 0;
		int hour = 0;
		int minute = 0;
		int second = 0;

		int tempHH = 1;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		allSecond = Integer.valueOf(str);

		hour = allSecond / 3600;
		tempHH =allSecond % 3600;
		minute = tempHH / 60;
		second = tempHH % 60;




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

	}


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

public class Main {
	public static void main(String[] args) throws IOException {
		print();
	}

	private static void print() throws IOException {
		int allSecond = 0;
		int hour = 0;
		int minute = 0;
		int second = 0;

		int tempHH = 1;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		allSecond = Integer.valueOf(str);

		hour = allSecond / 3600;
		tempHH =allSecond % 3600;
		minute = tempHH / 60;
		second = tempHH % 60;




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

	}


}