import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int second = scanner.nextInt();
		int h;
		int m;
		int s;
		
		h = second / 3600;
		second = second - h * 3600;
		m = second / 60;
		second = second - m * 60;
		s = second;
		
		System.out.println(h + ":" + m + ":" + s);

	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int second = scanner.nextInt();
		int h;
		int m;
		int s;
		
		h = second / 3600;
		second = second - h * 3600;
		m = second / 60;
		second = second - m * 60;
		s = second;
		
		System.out.println(h + ":" + m + ":" + s);

	}
} Main public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int second = scanner.nextInt();
		int h;
		int m;
		int s;
		
		h = second / 3600;
		second = second - h * 3600;
		m = second / 60;
		second = second - m * 60;
		s = second;
		
		System.out.println(h + ":" + m + ":" + s);

	} main {

		Scanner scanner = new Scanner(System.in);
		int second = scanner.nextInt();
		int h;
		int m;
		int s;
		
		h = second / 3600;
		second = second - h * 3600;
		m = second / 60;
		second = second - m * 60;
		s = second;
		
		System.out.println(h + ":" + m + ":" + s);

	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int second = scanner.nextInt(); second scanner.nextInt() scanner.nextInt scanner int h; h int m; m int s; s h = second / 3600 h second / 3600 second 3600 second = second - h * 3600 second second - h * 3600 second h * 3600 h 3600 m = second / 60 m second / 60 second 60 second = second - m * 60 second second - m * 60 second m * 60 m 60 s = second s second 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 scanner = new Scanner(System.in);
		int second = scanner.nextInt();
		int h;
		int m;
		int s;
		
		h = second / 3600;
		second = second - h * 3600;
		m = second / 60;
		second = second - m * 60;
		s = second;
		
		System.out.println(h + ":" + m + ":" + s);

	}
} public class Main {
	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int second = scanner.nextInt();
		int h;
		int m;
		int s;
		
		h = second / 3600;
		second = second - h * 3600;
		m = second / 60;
		second = second - m * 60;
		s = second;
		
		System.out.println(h + ":" + m + ":" + s);

	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int second = scanner.nextInt();
		int h;
		int m;
		int s;
		
		h = second / 3600;
		second = second - h * 3600;
		m = second / 60;
		second = second - m * 60;
		s = second;
		
		System.out.println(h + ":" + m + ":" + s);

	}
}