import java.util.*;
public class Main 
{
	public static void main(String[] args) 
	{
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int h = S / 3600;
		S %= 3600;
		int m = S / 60;
		System.out.printf("%d:%d:%d\n", h, m, S % 60);
	}
} import java.util.*; util.* java public class Main 
{
	public static void main(String[] args) 
	{
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int h = S / 3600;
		S %= 3600;
		int m = S / 60;
		System.out.printf("%d:%d:%d\n", h, m, S % 60);
	}
} Main public static void main(String[] args) 
	{
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int h = S / 3600;
		S %= 3600;
		int m = S / 60;
		System.out.printf("%d:%d:%d\n", h, m, S % 60);
	} main {
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int h = S / 3600;
		S %= 3600;
		int m = S / 60;
		System.out.printf("%d:%d:%d\n", h, m, S % 60);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int S = sc.nextInt(); S sc.nextInt() sc.nextInt sc int h = S / 3600; h S / 3600 S 3600 S %= 3600 S 3600 int m = S / 60; m S / 60 S 60 System.out.printf("%d:%d:%d\n", h, m, S % 60) System.out.printf System.out System System.out "%d:%d:%d\n" h m S % 60 S 60 String[] args args public class Main 
{
	public static void main(String[] args) 
	{
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int h = S / 3600;
		S %= 3600;
		int m = S / 60;
		System.out.printf("%d:%d:%d\n", h, m, S % 60);
	}
} public class Main 
{
	public static void main(String[] args) 
	{
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int h = S / 3600;
		S %= 3600;
		int m = S / 60;
		System.out.printf("%d:%d:%d\n", h, m, S % 60);
	}
} Main
import java.util.*;
public class Main 
{
	public static void main(String[] args) 
	{
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int h = S / 3600;
		S %= 3600;
		int m = S / 60;
		System.out.printf("%d:%d:%d\n", h, m, S % 60);
	}
}