import java.util.Scanner;

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

class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int s = scanner.nextInt(), m, h;
		s -= (h = (int) (s / 3600)) * 3600;
		s -= (m = (int) (s / 60)) * 60;
		System.out.println(h + ":" + m + ":" + s);
	}
}