import java.util.Scanner;

public class Main {
	void run() {
		Scanner scan = new Scanner(System.in);
		int s = scan.nextInt();
		int h = s / (60*60);
		s = s % (60*60);
		int m = s / 60;
		s = s % 60;
		System.out.printf("%d:%d:%d\n", h, m, s);
	}
	public static void main(String[] args) {
		new Main().run();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	void run() {
		Scanner scan = new Scanner(System.in);
		int s = scan.nextInt();
		int h = s / (60*60);
		s = s % (60*60);
		int m = s / 60;
		s = s % 60;
		System.out.printf("%d:%d:%d\n", h, m, s);
	}
	public static void main(String[] args) {
		new Main().run();
	}
} Main void run() {
		Scanner scan = new Scanner(System.in);
		int s = scan.nextInt();
		int h = s / (60*60);
		s = s % (60*60);
		int m = s / 60;
		s = s % 60;
		System.out.printf("%d:%d:%d\n", h, m, s);
	} run {
		Scanner scan = new Scanner(System.in);
		int s = scan.nextInt();
		int h = s / (60*60);
		s = s % (60*60);
		int m = s / 60;
		s = s % 60;
		System.out.printf("%d:%d:%d\n", h, m, 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 / (60*60); h s / (60*60) s (60*60) 60 60 s = s % (60*60) s s % (60*60) s (60*60) 60 60 int m = s / 60; m s / 60 s 60 s = s % 60 s s % 60 s 60 System.out.printf("%d:%d:%d\n", h, m, s) System.out.printf System.out System System.out "%d:%d:%d\n" h m s public static void main(String[] args) {
		new Main().run();
	} main {
		new Main().run();
	} new Main().run() new Main().run new Main() String[] args args public class Main {
	void run() {
		Scanner scan = new Scanner(System.in);
		int s = scan.nextInt();
		int h = s / (60*60);
		s = s % (60*60);
		int m = s / 60;
		s = s % 60;
		System.out.printf("%d:%d:%d\n", h, m, s);
	}
	public static void main(String[] args) {
		new Main().run();
	}
} public class Main {
	void run() {
		Scanner scan = new Scanner(System.in);
		int s = scan.nextInt();
		int h = s / (60*60);
		s = s % (60*60);
		int m = s / 60;
		s = s % 60;
		System.out.printf("%d:%d:%d\n", h, m, s);
	}
	public static void main(String[] args) {
		new Main().run();
	}
} Main
import java.util.Scanner;

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