public class Main {
	public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		int h = 0;
		int m = 0;
		int s = 0;

		s = sc.nextInt();

		h = s / 3600;
		s = s % 3600;
		m = s / 60;
		s = s % 60;

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

} public class Main {
	public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		int h = 0;
		int m = 0;
		int s = 0;

		s = sc.nextInt();

		h = s / 3600;
		s = s % 3600;
		m = s / 60;
		s = s % 60;

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

} Main public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		int h = 0;
		int m = 0;
		int s = 0;

		s = sc.nextInt();

		h = s / 3600;
		s = s % 3600;
		m = s / 60;
		s = s % 60;

		System.out.println(h + ":" +  m  + ":" + s);
	} main {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		int h = 0;
		int m = 0;
		int s = 0;

		s = sc.nextInt();

		h = s / 3600;
		s = s % 3600;
		m = s / 60;
		s = s % 60;

		System.out.println(h + ":" +  m  + ":" + s);
	} java.util.Scanner sc = new java.util.Scanner(System.in); sc new java.util.Scanner(System.in) int h = 0; h 0 int m = 0; m 0 int s = 0; s 0 s = sc.nextInt() s sc.nextInt() sc.nextInt sc h = s / 3600 h s / 3600 s 3600 s = s % 3600 s s % 3600 s 3600 m = s / 60 m s / 60 s 60 s = s % 60 s s % 60 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) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		int h = 0;
		int m = 0;
		int s = 0;

		s = sc.nextInt();

		h = s / 3600;
		s = s % 3600;
		m = s / 60;
		s = s % 60;

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

} public class Main {
	public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		int h = 0;
		int m = 0;
		int s = 0;

		s = sc.nextInt();

		h = s / 3600;
		s = s % 3600;
		m = s / 60;
		s = s % 60;

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

} Main
public class Main {
	public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		int h = 0;
		int m = 0;
		int s = 0;

		s = sc.nextInt();

		h = s / 3600;
		s = s % 3600;
		m = s / 60;
		s = s % 60;

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

}