
import java.util.Scanner;

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

		//
		int s = S % 60;
		int M = S / 60;
		int m = M % 60;
		int H = M / 60;
		int h = H;

		// ret
		System.out.println(h + ":" + m + ":" + 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 s = S % 60;
		int M = S / 60;
		int m = M % 60;
		int H = M / 60;
		int h = H;

		// ret
		System.out.println(h + ":" + m + ":" + s);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();

		//
		int s = S % 60;
		int M = S / 60;
		int m = M % 60;
		int H = M / 60;
		int h = H;

		// ret
		System.out.println(h + ":" + m + ":" + s);
	} main {
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();

		//
		int s = S % 60;
		int M = S / 60;
		int m = M % 60;
		int H = M / 60;
		int h = H;

		// ret
		System.out.println(h + ":" + m + ":" + s);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int S = sc.nextInt(); S sc.nextInt() sc.nextInt sc int s = S % 60; s S % 60 S 60 int M = S / 60; M S / 60 S 60 int m = M % 60; m M % 60 M 60 int H = M / 60; H M / 60 M 60 int h = H; h H 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 sc = new Scanner(System.in);
		int S = sc.nextInt();

		//
		int s = S % 60;
		int M = S / 60;
		int m = M % 60;
		int H = M / 60;
		int h = H;

		// ret
		System.out.println(h + ":" + m + ":" + s);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int S = sc.nextInt();

		//
		int s = S % 60;
		int M = S / 60;
		int m = M % 60;
		int H = M / 60;
		int h = H;

		// ret
		System.out.println(h + ":" + m + ":" + 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 s = S % 60;
		int M = S / 60;
		int m = M % 60;
		int H = M / 60;
		int h = H;

		// ret
		System.out.println(h + ":" + m + ":" + s);
	}
}