import java.util.*;

class Main
{
	public static void main(String args[]) {

		try {

			Scanner sc = new Scanner(System.in);

			int temp = Integer.parseInt(sc.next());

			int hou = temp/3600;
			int min = (temp/60) - (hou*60);
			int sec = temp - (hou*3600+min*60);

			System.out.println(hou +":"+ min +":"+ sec);
		}
		catch (Exception e) {
			System.out.println(e);
		}
	}
} import java.util.*; util.* java class Main
{
	public static void main(String args[]) {

		try {

			Scanner sc = new Scanner(System.in);

			int temp = Integer.parseInt(sc.next());

			int hou = temp/3600;
			int min = (temp/60) - (hou*60);
			int sec = temp - (hou*3600+min*60);

			System.out.println(hou +":"+ min +":"+ sec);
		}
		catch (Exception e) {
			System.out.println(e);
		}
	}
} Main public static void main(String args[]) {

		try {

			Scanner sc = new Scanner(System.in);

			int temp = Integer.parseInt(sc.next());

			int hou = temp/3600;
			int min = (temp/60) - (hou*60);
			int sec = temp - (hou*3600+min*60);

			System.out.println(hou +":"+ min +":"+ sec);
		}
		catch (Exception e) {
			System.out.println(e);
		}
	} main {

		try {

			Scanner sc = new Scanner(System.in);

			int temp = Integer.parseInt(sc.next());

			int hou = temp/3600;
			int min = (temp/60) - (hou*60);
			int sec = temp - (hou*3600+min*60);

			System.out.println(hou +":"+ min +":"+ sec);
		}
		catch (Exception e) {
			System.out.println(e);
		}
	} try {

			Scanner sc = new Scanner(System.in);

			int temp = Integer.parseInt(sc.next());

			int hou = temp/3600;
			int min = (temp/60) - (hou*60);
			int sec = temp - (hou*3600+min*60);

			System.out.println(hou +":"+ min +":"+ sec);
		}
		catch (Exception e) {
			System.out.println(e);
		} catch (Exception e) {
			System.out.println(e);
		} Exception e {
			System.out.println(e);
		} System.out.println(e) System.out.println System.out System System.out e {

			Scanner sc = new Scanner(System.in);

			int temp = Integer.parseInt(sc.next());

			int hou = temp/3600;
			int min = (temp/60) - (hou*60);
			int sec = temp - (hou*3600+min*60);

			System.out.println(hou +":"+ min +":"+ sec);
		} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int temp = Integer.parseInt(sc.next()); temp Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int hou = temp/3600; hou temp/3600 temp 3600 int min = (temp/60) - (hou*60); min (temp/60) - (hou*60) (temp/60) temp 60 (hou*60) hou 60 int sec = temp - (hou*3600+min*60); sec temp - (hou*3600+min*60) temp (hou*3600+min*60) hou*3600 hou 3600 min*60 min 60 System.out.println(hou +":"+ min +":"+ sec) System.out.println System.out System System.out hou +":"+ min +":"+ sec ":" min hou +":"+ min +":"+ sec hou ":" min ":" sec String args[] args
import java.util.*;

class Main
{
	public static void main(String args[]) {

		try {

			Scanner sc = new Scanner(System.in);

			int temp = Integer.parseInt(sc.next());

			int hou = temp/3600;
			int min = (temp/60) - (hou*60);
			int sec = temp - (hou*3600+min*60);

			System.out.println(hou +":"+ min +":"+ sec);
		}
		catch (Exception e) {
			System.out.println(e);
		}
	}
}