import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int S = scan.nextInt();
		//????????§?§???°??\???
		int h = S / 3600;
		int m = S % 3600 / 60;
		int s = S % 60;

		System.out.print(h);
		System.out.print(":");
		System.out.print(m);
		System.out.print(":");
		System.out.println(s);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int S = scan.nextInt();
		//????????§?§???°??\???
		int h = S / 3600;
		int m = S % 3600 / 60;
		int s = S % 60;

		System.out.print(h);
		System.out.print(":");
		System.out.print(m);
		System.out.print(":");
		System.out.println(s);
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int S = scan.nextInt();
		//????????§?§???°??\???
		int h = S / 3600;
		int m = S % 3600 / 60;
		int s = S % 60;

		System.out.print(h);
		System.out.print(":");
		System.out.print(m);
		System.out.print(":");
		System.out.println(s);
	} main {
		Scanner scan = new Scanner(System.in);
		int S = scan.nextInt();
		//????????§?§???°??\???
		int h = S / 3600;
		int m = S % 3600 / 60;
		int s = S % 60;

		System.out.print(h);
		System.out.print(":");
		System.out.print(m);
		System.out.print(":");
		System.out.println(s);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int S = scan.nextInt(); S scan.nextInt() scan.nextInt scan int h = S / 3600; h S / 3600 S 3600 int m = S % 3600 / 60; m S % 3600 / 60 S % 3600 S 3600 60 int s = S % 60; s S % 60 S 60 System.out.print(h) System.out.print System.out System System.out h System.out.print(":") System.out.print System.out System System.out ":" System.out.print(m) System.out.print System.out System System.out m System.out.print(":") System.out.print System.out System System.out ":" System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int S = scan.nextInt();
		//????????§?§???°??\???
		int h = S / 3600;
		int m = S % 3600 / 60;
		int s = S % 60;

		System.out.print(h);
		System.out.print(":");
		System.out.print(m);
		System.out.print(":");
		System.out.println(s);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int S = scan.nextInt();
		//????????§?§???°??\???
		int h = S / 3600;
		int m = S % 3600 / 60;
		int s = S % 60;

		System.out.print(h);
		System.out.print(":");
		System.out.print(m);
		System.out.print(":");
		System.out.println(s);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int S = scan.nextInt();
		//????????§?§???°??\???
		int h = S / 3600;
		int m = S % 3600 / 60;
		int s = S % 60;

		System.out.print(h);
		System.out.print(":");
		System.out.print(m);
		System.out.print(":");
		System.out.println(s);
	}
}