import java.util.*;

class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);

		int S = in.nextInt();
		int h = S / 60 / 60;
		int m = (S / 60) % 60;
		int s = S % 60;

		System.out.println(String.format("%d:%d:%d", h, m, s));
	}
} import java.util.*; util.* java class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);

		int S = in.nextInt();
		int h = S / 60 / 60;
		int m = (S / 60) % 60;
		int s = S % 60;

		System.out.println(String.format("%d:%d:%d", h, m, s));
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);

		int S = in.nextInt();
		int h = S / 60 / 60;
		int m = (S / 60) % 60;
		int s = S % 60;

		System.out.println(String.format("%d:%d:%d", h, m, s));
	} main {
		Scanner in = new Scanner(System.in);

		int S = in.nextInt();
		int h = S / 60 / 60;
		int m = (S / 60) % 60;
		int s = S % 60;

		System.out.println(String.format("%d:%d:%d", h, m, s));
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int S = in.nextInt(); S in.nextInt() in.nextInt in int h = S / 60 / 60; h S / 60 / 60 S / 60 / 60 S 60 60 int m = (S / 60) % 60; m (S / 60) % 60 (S / 60) S 60 60 int s = S % 60; s S % 60 S 60 System.out.println(String.format("%d:%d:%d", h, m, s)) System.out.println System.out System System.out String.format("%d:%d:%d", h, m, s) String.format String "%d:%d:%d" h m s String[] args args
import java.util.*;

class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);

		int S = in.nextInt();
		int h = S / 60 / 60;
		int m = (S / 60) % 60;
		int s = S % 60;

		System.out.println(String.format("%d:%d:%d", h, m, s));
	}
}