import java.util.Scanner;

public class Main {

	@SuppressWarnings("resource")
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int x = in.nextInt();
		int s = x%60;
		int h = x/3600;
		int m = x/60-60*h;
		System.out.println(h+":"+m+":"+s);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	@SuppressWarnings("resource")
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int x = in.nextInt();
		int s = x%60;
		int h = x/3600;
		int m = x/60-60*h;
		System.out.println(h+":"+m+":"+s);
	}
} Main @SuppressWarnings("resource")
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int x = in.nextInt();
		int s = x%60;
		int h = x/3600;
		int m = x/60-60*h;
		System.out.println(h+":"+m+":"+s);
	} main {
		Scanner in = new Scanner(System.in);
		int x = in.nextInt();
		int s = x%60;
		int h = x/3600;
		int m = x/60-60*h;
		System.out.println(h+":"+m+":"+s);
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int x = in.nextInt(); x in.nextInt() in.nextInt in int s = x%60; s x%60 x 60 int h = x/3600; h x/3600 x 3600 int m = x/60-60*h; m x/60-60*h x/60 x 60 60*h 60 h System.out.println(h+":"+m+":"+s) System.out.println System.out System System.out h+":"+m+":"+s ":" m h+":"+m+":"+s h ":" m ":" s String[] args args public class Main {

	@SuppressWarnings("resource")
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int x = in.nextInt();
		int s = x%60;
		int h = x/3600;
		int m = x/60-60*h;
		System.out.println(h+":"+m+":"+s);
	}
} public class Main {

	@SuppressWarnings("resource")
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int x = in.nextInt();
		int s = x%60;
		int h = x/3600;
		int m = x/60-60*h;
		System.out.println(h+":"+m+":"+s);
	}
} Main
import java.util.Scanner;

public class Main {

	@SuppressWarnings("resource")
	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		int x = in.nextInt();
		int s = x%60;
		int h = x/3600;
		int m = x/60-60*h;
		System.out.println(h+":"+m+":"+s);
	}
}