import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int hour = S/3600;
		S -= hour * 3600;
		int minutes = S/60;
		S -= minutes * 60;
		System.out.println(hour + ":" + minutes + ":" + S);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int hour = S/3600;
		S -= hour * 3600;
		int minutes = S/60;
		S -= minutes * 60;
		System.out.println(hour + ":" + minutes + ":" + S);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int hour = S/3600;
		S -= hour * 3600;
		int minutes = S/60;
		S -= minutes * 60;
		System.out.println(hour + ":" + minutes + ":" + S);
	} main {
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int hour = S/3600;
		S -= hour * 3600;
		int minutes = S/60;
		S -= minutes * 60;
		System.out.println(hour + ":" + minutes + ":" + S);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int S = sc.nextInt(); S sc.nextInt() sc.nextInt sc int hour = S/3600; hour S/3600 S 3600 S -= hour * 3600 S hour * 3600 hour 3600 int minutes = S/60; minutes S/60 S 60 S -= minutes * 60 S minutes * 60 minutes 60 System.out.println(hour + ":" + minutes + ":" + S) System.out.println System.out System System.out hour + ":" + minutes + ":" + S ":" minutes hour + ":" + minutes + ":" + S hour ":" minutes ":" S String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int hour = S/3600;
		S -= hour * 3600;
		int minutes = S/60;
		S -= minutes * 60;
		System.out.println(hour + ":" + minutes + ":" + S);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int hour = S/3600;
		S -= hour * 3600;
		int minutes = S/60;
		S -= minutes * 60;
		System.out.println(hour + ":" + minutes + ":" + S);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();
		int hour = S/3600;
		S -= hour * 3600;
		int minutes = S/60;
		S -= minutes * 60;
		System.out.println(hour + ":" + minutes + ":" + S);
	}
}