import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
	    int second = sc.nextInt();

	    int hour = second / (60*60);
		int minutes = (second % 3600) / 60;
		int sec = second % 60;

		System.out.printf("%d:%d:%d\n", hour, minutes, sec);

	}

} import java.util.Scanner; Scanner java.util public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
	    int second = sc.nextInt();

	    int hour = second / (60*60);
		int minutes = (second % 3600) / 60;
		int sec = second % 60;

		System.out.printf("%d:%d:%d\n", hour, minutes, sec);

	}

} Main public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
	    int second = sc.nextInt();

	    int hour = second / (60*60);
		int minutes = (second % 3600) / 60;
		int sec = second % 60;

		System.out.printf("%d:%d:%d\n", hour, minutes, sec);

	} main {
		Scanner sc = new Scanner(System.in);
	    int second = sc.nextInt();

	    int hour = second / (60*60);
		int minutes = (second % 3600) / 60;
		int sec = second % 60;

		System.out.printf("%d:%d:%d\n", hour, minutes, sec);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int second = sc.nextInt(); second sc.nextInt() sc.nextInt sc int hour = second / (60*60); hour second / (60*60) second (60*60) 60 60 int minutes = (second % 3600) / 60; minutes (second % 3600) / 60 (second % 3600) second 3600 60 int sec = second % 60; sec second % 60 second 60 System.out.printf("%d:%d:%d\n", hour, minutes, sec) System.out.printf System.out System System.out "%d:%d:%d\n" hour minutes sec String[] args args public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
	    int second = sc.nextInt();

	    int hour = second / (60*60);
		int minutes = (second % 3600) / 60;
		int sec = second % 60;

		System.out.printf("%d:%d:%d\n", hour, minutes, sec);

	}

} public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
	    int second = sc.nextInt();

	    int hour = second / (60*60);
		int minutes = (second % 3600) / 60;
		int sec = second % 60;

		System.out.printf("%d:%d:%d\n", hour, minutes, sec);

	}

} Main
import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
	    int second = sc.nextInt();

	    int hour = second / (60*60);
		int minutes = (second % 3600) / 60;
		int sec = second % 60;

		System.out.printf("%d:%d:%d\n", hour, minutes, sec);

	}

}