import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long S = scan.nextLong();
		long h = S / 3600;
		long m = Math.floorMod(S, 3600) / 60;
		long s = Math.floorMod(S, 60);
		System.out.println(h + ":" + m + ":" + s);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long S = scan.nextLong();
		long h = S / 3600;
		long m = Math.floorMod(S, 3600) / 60;
		long s = Math.floorMod(S, 60);
		System.out.println(h + ":" + m + ":" + s);
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long S = scan.nextLong();
		long h = S / 3600;
		long m = Math.floorMod(S, 3600) / 60;
		long s = Math.floorMod(S, 60);
		System.out.println(h + ":" + m + ":" + s);
	} main {
		Scanner scan = new Scanner(System.in);
		long S = scan.nextLong();
		long h = S / 3600;
		long m = Math.floorMod(S, 3600) / 60;
		long s = Math.floorMod(S, 60);
		System.out.println(h + ":" + m + ":" + s);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) long S = scan.nextLong(); S scan.nextLong() scan.nextLong scan long h = S / 3600; h S / 3600 S 3600 long m = Math.floorMod(S, 3600) / 60; m Math.floorMod(S, 3600) / 60 Math.floorMod(S, 3600) Math.floorMod Math S 3600 60 long s = Math.floorMod(S, 60); s Math.floorMod(S, 60) Math.floorMod Math S 60 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 {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long S = scan.nextLong();
		long h = S / 3600;
		long m = Math.floorMod(S, 3600) / 60;
		long s = Math.floorMod(S, 60);
		System.out.println(h + ":" + m + ":" + s);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long S = scan.nextLong();
		long h = S / 3600;
		long m = Math.floorMod(S, 3600) / 60;
		long s = Math.floorMod(S, 60);
		System.out.println(h + ":" + m + ":" + s);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long S = scan.nextLong();
		long h = S / 3600;
		long m = Math.floorMod(S, 3600) / 60;
		long s = Math.floorMod(S, 60);
		System.out.println(h + ":" + m + ":" + s);
	}
}