import java.util.Scanner;
public class Main
{
	public static void main(String args[])
	{
		int n,a,b,c;
		Scanner input = new Scanner(System.in);
		n = input.nextInt();
		System.out.println(n/3600 + ":" + (n%3600)/60 + ":" + n%60);
	}
} import java.util.Scanner; Scanner java.util public class Main
{
	public static void main(String args[])
	{
		int n,a,b,c;
		Scanner input = new Scanner(System.in);
		n = input.nextInt();
		System.out.println(n/3600 + ":" + (n%3600)/60 + ":" + n%60);
	}
} Main public static void main(String args[])
	{
		int n,a,b,c;
		Scanner input = new Scanner(System.in);
		n = input.nextInt();
		System.out.println(n/3600 + ":" + (n%3600)/60 + ":" + n%60);
	} main {
		int n,a,b,c;
		Scanner input = new Scanner(System.in);
		n = input.nextInt();
		System.out.println(n/3600 + ":" + (n%3600)/60 + ":" + n%60);
	} int n n a a b b c; c Scanner input = new Scanner(System.in); input new Scanner(System.in) n = input.nextInt() n input.nextInt() input.nextInt input System.out.println(n/3600 + ":" + (n%3600)/60 + ":" + n%60) System.out.println System.out System System.out n/3600 + ":" + (n%3600)/60 + ":" + n%60 ":" (n%3600)/60 n/3600 + ":" + (n%3600)/60 + ":" + n%60 n/3600 n 3600 ":" (n%3600)/60 (n%3600) n 3600 60 ":" n%60 n 60 String args[] args public class Main
{
	public static void main(String args[])
	{
		int n,a,b,c;
		Scanner input = new Scanner(System.in);
		n = input.nextInt();
		System.out.println(n/3600 + ":" + (n%3600)/60 + ":" + n%60);
	}
} public class Main
{
	public static void main(String args[])
	{
		int n,a,b,c;
		Scanner input = new Scanner(System.in);
		n = input.nextInt();
		System.out.println(n/3600 + ":" + (n%3600)/60 + ":" + n%60);
	}
} Main
import java.util.Scanner;
public class Main
{
	public static void main(String args[])
	{
		int n,a,b,c;
		Scanner input = new Scanner(System.in);
		n = input.nextInt();
		System.out.println(n/3600 + ":" + (n%3600)/60 + ":" + n%60);
	}
}