import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {

	/** ??\??????????????°????????° */
	private static final int NUMBER_OF_INPUT = 2;

	/** ??\??????????????°????????????????????????????°???? */
	private static final int INDEX_LITTLE = 0;

	/** ??\??????????????°?????????????????????????????§??? */
	private static final int INDEX_GREAT = 1;

	/**
	 * ??????????????????2????????°???????????????????????????2????????°??????????¨????????????°??????????????????
	 *
	 * @param args
	 */
	public static void main(String[] args) throws IOException {

		// ??\?????????????????????????????????
		String line = null;
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		while ((line = reader.readLine()) != null) {

			// ??\?????????????????°????????????????????????
			int[] input = convertStringToIntArray(line);

			// ????¨????????????°???????????????
			Arrays.sort(input);
			int greatestCommonDivisor = calculateGreatestCommonDivisor(input);
			int leastCommonMultiplyer = calculateLeastCommonMultiplyer(input, greatestCommonDivisor);

			// ?????????????????????
			System.out.print(greatestCommonDivisor);
			System.out.print(" ");
			System.out.println(leastCommonMultiplyer);
		}

		if (reader != null) {
			reader.close();
		}
	}

	/**
	 * ????????????????????°????????????????????´??°???????????¨???????????´?????????
	 *
	 * @param line
	 *            ????????????????????°????????????
	 * @return ??´??°?????????
	 */
	protected static int[] convertStringToIntArray(String line) {
		int[] result = new int[NUMBER_OF_INPUT];

		String[] splittedLine = line.split(" ");
		for (int i = 0; i < splittedLine.length; i++) {
			result[i] = Integer.parseInt(splittedLine[i]);
		}

		return result;
	}

	/**
	 * ?????°??§??????????????´??°??????????????§??¬?´???°????????????
	 *
	 * @param input
	 *            ??´??°?????????
	 * @return ?????§??¬?´???°
	 */
	protected static int calculateGreatestCommonDivisor(int[] input) {

		// ??????????????????????????????
		int greater = input[INDEX_GREAT];
		int less = input[INDEX_LITTLE];
		int divisor = greater - less;

		while (divisor != 0) {

			// ??§?????????????????? greater ???????°??????????????????? less ????¨??????????
			if (less >= divisor) {
				greater = less;
				less = divisor;
			} else {
				greater = divisor;
			}
			divisor = greater - less;
		}

		// ??????????????¨????????????????????§??¬?´???°
		return less;
	}

	/**
	 * ?????°??§??????????????´??°????????¨?????§??¬?´???°??????????°???¬?????°????????????
	 *
	 * @param input
	 *            ??´??°?????????
	 * @param greatestCommonDivisor
	 * 			  ?????§??¬?´???°
	 *
	 * @return ????°???¬?????°
	 */
	protected static int calculateLeastCommonMultiplyer(int[] input, int greatestCommonDivisor) {

		// ????°???¬?????° = ??\??????A ?? ??\??????B / ?????§??¬?´???°
		// ??????????????? int ??????????????????????????????????????????????????????????????¨ int ?????????????¶???????????????§?????????
		int leastCommonMultiplyer = input[INDEX_LITTLE] * (input[INDEX_GREAT]
				/ greatestCommonDivisor);
		return leastCommonMultiplyer;

	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util public class Main {

	/** ??\??????????????°????????° */
	private static final int NUMBER_OF_INPUT = 2;

	/** ??\??????????????°????????????????????????????°???? */
	private static final int INDEX_LITTLE = 0;

	/** ??\??????????????°?????????????????????????????§??? */
	private static final int INDEX_GREAT = 1;

	/**
	 * ??????????????????2????????°???????????????????????????2????????°??????????¨????????????°??????????????????
	 *
	 * @param args
	 */
	public static void main(String[] args) throws IOException {

		// ??\?????????????????????????????????
		String line = null;
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		while ((line = reader.readLine()) != null) {

			// ??\?????????????????°????????????????????????
			int[] input = convertStringToIntArray(line);

			// ????¨????????????°???????????????
			Arrays.sort(input);
			int greatestCommonDivisor = calculateGreatestCommonDivisor(input);
			int leastCommonMultiplyer = calculateLeastCommonMultiplyer(input, greatestCommonDivisor);

			// ?????????????????????
			System.out.print(greatestCommonDivisor);
			System.out.print(" ");
			System.out.println(leastCommonMultiplyer);
		}

		if (reader != null) {
			reader.close();
		}
	}

	/**
	 * ????????????????????°????????????????????´??°???????????¨???????????´?????????
	 *
	 * @param line
	 *            ????????????????????°????????????
	 * @return ??´??°?????????
	 */
	protected static int[] convertStringToIntArray(String line) {
		int[] result = new int[NUMBER_OF_INPUT];

		String[] splittedLine = line.split(" ");
		for (int i = 0; i < splittedLine.length; i++) {
			result[i] = Integer.parseInt(splittedLine[i]);
		}

		return result;
	}

	/**
	 * ?????°??§??????????????´??°??????????????§??¬?´???°????????????
	 *
	 * @param input
	 *            ??´??°?????????
	 * @return ?????§??¬?´???°
	 */
	protected static int calculateGreatestCommonDivisor(int[] input) {

		// ??????????????????????????????
		int greater = input[INDEX_GREAT];
		int less = input[INDEX_LITTLE];
		int divisor = greater - less;

		while (divisor != 0) {

			// ??§?????????????????? greater ???????°??????????????????? less ????¨??????????
			if (less >= divisor) {
				greater = less;
				less = divisor;
			} else {
				greater = divisor;
			}
			divisor = greater - less;
		}

		// ??????????????¨????????????????????§??¬?´???°
		return less;
	}

	/**
	 * ?????°??§??????????????´??°????????¨?????§??¬?´???°??????????°???¬?????°????????????
	 *
	 * @param input
	 *            ??´??°?????????
	 * @param greatestCommonDivisor
	 * 			  ?????§??¬?´???°
	 *
	 * @return ????°???¬?????°
	 */
	protected static int calculateLeastCommonMultiplyer(int[] input, int greatestCommonDivisor) {

		// ????°???¬?????° = ??\??????A ?? ??\??????B / ?????§??¬?´???°
		// ??????????????? int ??????????????????????????????????????????????????????????????¨ int ?????????????¶???????????????§?????????
		int leastCommonMultiplyer = input[INDEX_LITTLE] * (input[INDEX_GREAT]
				/ greatestCommonDivisor);
		return leastCommonMultiplyer;

	}

} Main /** ??\??????????????°????????° */
	private static final int NUMBER_OF_INPUT = 2; NUMBER_OF_INPUT 2 /** ??\??????????????°????????????????????????????°???? */
	private static final int INDEX_LITTLE = 0; INDEX_LITTLE 0 /** ??\??????????????°?????????????????????????????§??? */
	private static final int INDEX_GREAT = 1; INDEX_GREAT 1 /**
	 * ??????????????????2????????°???????????????????????????2????????°??????????¨????????????°??????????????????
	 *
	 * @param args
	 */
	public static void main(String[] args) throws IOException {

		// ??\?????????????????????????????????
		String line = null;
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		while ((line = reader.readLine()) != null) {

			// ??\?????????????????°????????????????????????
			int[] input = convertStringToIntArray(line);

			// ????¨????????????°???????????????
			Arrays.sort(input);
			int greatestCommonDivisor = calculateGreatestCommonDivisor(input);
			int leastCommonMultiplyer = calculateLeastCommonMultiplyer(input, greatestCommonDivisor);

			// ?????????????????????
			System.out.print(greatestCommonDivisor);
			System.out.print(" ");
			System.out.println(leastCommonMultiplyer);
		}

		if (reader != null) {
			reader.close();
		}
	} main {

		// ??\?????????????????????????????????
		String line = null;
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		while ((line = reader.readLine()) != null) {

			// ??\?????????????????°????????????????????????
			int[] input = convertStringToIntArray(line);

			// ????¨????????????°???????????????
			Arrays.sort(input);
			int greatestCommonDivisor = calculateGreatestCommonDivisor(input);
			int leastCommonMultiplyer = calculateLeastCommonMultiplyer(input, greatestCommonDivisor);

			// ?????????????????????
			System.out.print(greatestCommonDivisor);
			System.out.print(" ");
			System.out.println(leastCommonMultiplyer);
		}

		if (reader != null) {
			reader.close();
		}
	} String line = null; line null BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in)); reader new BufferedReader(new InputStreamReader(
				System.in)) while ((line = reader.readLine()) != null) {

			// ??\?????????????????°????????????????????????
			int[] input = convertStringToIntArray(line);

			// ????¨????????????°???????????????
			Arrays.sort(input);
			int greatestCommonDivisor = calculateGreatestCommonDivisor(input);
			int leastCommonMultiplyer = calculateLeastCommonMultiplyer(input, greatestCommonDivisor);

			// ?????????????????????
			System.out.print(greatestCommonDivisor);
			System.out.print(" ");
			System.out.println(leastCommonMultiplyer);
		} (line = reader.readLine()) != null (line = reader.readLine()) line reader.readLine() reader.readLine reader null {

			// ??\?????????????????°????????????????????????
			int[] input = convertStringToIntArray(line);

			// ????¨????????????°???????????????
			Arrays.sort(input);
			int greatestCommonDivisor = calculateGreatestCommonDivisor(input);
			int leastCommonMultiplyer = calculateLeastCommonMultiplyer(input, greatestCommonDivisor);

			// ?????????????????????
			System.out.print(greatestCommonDivisor);
			System.out.print(" ");
			System.out.println(leastCommonMultiplyer);
		} int[] input = convertStringToIntArray(line); input convertStringToIntArray(line) convertStringToIntArray line Arrays.sort(input) Arrays.sort Arrays input int greatestCommonDivisor = calculateGreatestCommonDivisor(input); greatestCommonDivisor calculateGreatestCommonDivisor(input) calculateGreatestCommonDivisor input int leastCommonMultiplyer = calculateLeastCommonMultiplyer(input, greatestCommonDivisor); leastCommonMultiplyer calculateLeastCommonMultiplyer(input, greatestCommonDivisor) calculateLeastCommonMultiplyer input greatestCommonDivisor System.out.print(greatestCommonDivisor) System.out.print System.out System System.out greatestCommonDivisor System.out.print(" ") System.out.print System.out System System.out " " System.out.println(leastCommonMultiplyer) System.out.println System.out System System.out leastCommonMultiplyer if (reader != null) {
			reader.close();
		} reader != null reader null {
			reader.close();
		} reader.close() reader.close reader String[] args args /**
	 * ????????????????????°????????????????????´??°???????????¨???????????´?????????
	 *
	 * @param line
	 *            ????????????????????°????????????
	 * @return ??´??°?????????
	 */
	protected static int[] convertStringToIntArray(String line) {
		int[] result = new int[NUMBER_OF_INPUT];

		String[] splittedLine = line.split(" ");
		for (int i = 0; i < splittedLine.length; i++) {
			result[i] = Integer.parseInt(splittedLine[i]);
		}

		return result;
	} convertStringToIntArray {
		int[] result = new int[NUMBER_OF_INPUT];

		String[] splittedLine = line.split(" ");
		for (int i = 0; i < splittedLine.length; i++) {
			result[i] = Integer.parseInt(splittedLine[i]);
		}

		return result;
	} int[] result = new int[NUMBER_OF_INPUT]; result new int[NUMBER_OF_INPUT] NUMBER_OF_INPUT String[] splittedLine = line.split(" "); splittedLine line.split(" ") line.split line " " for (int i = 0; i < splittedLine.length; i++) {
			result[i] = Integer.parseInt(splittedLine[i]);
		} int i = 0; int i = 0; i 0 i < splittedLine.length i splittedLine.length splittedLine splittedLine.length i++ i++ i {
			result[i] = Integer.parseInt(splittedLine[i]);
		} {
			result[i] = Integer.parseInt(splittedLine[i]);
		} result[i] = Integer.parseInt(splittedLine[i]) result[i] result i Integer.parseInt(splittedLine[i]) Integer.parseInt Integer splittedLine[i] splittedLine i return result; result String line line /**
	 * ?????°??§??????????????´??°??????????????§??¬?´???°????????????
	 *
	 * @param input
	 *            ??´??°?????????
	 * @return ?????§??¬?´???°
	 */
	protected static int calculateGreatestCommonDivisor(int[] input) {

		// ??????????????????????????????
		int greater = input[INDEX_GREAT];
		int less = input[INDEX_LITTLE];
		int divisor = greater - less;

		while (divisor != 0) {

			// ??§?????????????????? greater ???????°??????????????????? less ????¨??????????
			if (less >= divisor) {
				greater = less;
				less = divisor;
			} else {
				greater = divisor;
			}
			divisor = greater - less;
		}

		// ??????????????¨????????????????????§??¬?´???°
		return less;
	} calculateGreatestCommonDivisor {

		// ??????????????????????????????
		int greater = input[INDEX_GREAT];
		int less = input[INDEX_LITTLE];
		int divisor = greater - less;

		while (divisor != 0) {

			// ??§?????????????????? greater ???????°??????????????????? less ????¨??????????
			if (less >= divisor) {
				greater = less;
				less = divisor;
			} else {
				greater = divisor;
			}
			divisor = greater - less;
		}

		// ??????????????¨????????????????????§??¬?´???°
		return less;
	} int greater = input[INDEX_GREAT]; greater input[INDEX_GREAT] input INDEX_GREAT int less = input[INDEX_LITTLE]; less input[INDEX_LITTLE] input INDEX_LITTLE int divisor = greater - less; divisor greater - less greater less while (divisor != 0) {

			// ??§?????????????????? greater ???????°??????????????????? less ????¨??????????
			if (less >= divisor) {
				greater = less;
				less = divisor;
			} else {
				greater = divisor;
			}
			divisor = greater - less;
		} divisor != 0 divisor 0 {

			// ??§?????????????????? greater ???????°??????????????????? less ????¨??????????
			if (less >= divisor) {
				greater = less;
				less = divisor;
			} else {
				greater = divisor;
			}
			divisor = greater - less;
		} if (less >= divisor) {
				greater = less;
				less = divisor;
			} else {
				greater = divisor;
			} less >= divisor less divisor {
				greater = less;
				less = divisor;
			} greater = less greater less less = divisor less divisor {
				greater = divisor;
			} greater = divisor greater divisor divisor = greater - less divisor greater - less greater less return less; less int[] input input /**
	 * ?????°??§??????????????´??°????????¨?????§??¬?´???°??????????°???¬?????°????????????
	 *
	 * @param input
	 *            ??´??°?????????
	 * @param greatestCommonDivisor
	 * 			  ?????§??¬?´???°
	 *
	 * @return ????°???¬?????°
	 */
	protected static int calculateLeastCommonMultiplyer(int[] input, int greatestCommonDivisor) {

		// ????°???¬?????° = ??\??????A ?? ??\??????B / ?????§??¬?´???°
		// ??????????????? int ??????????????????????????????????????????????????????????????¨ int ?????????????¶???????????????§?????????
		int leastCommonMultiplyer = input[INDEX_LITTLE] * (input[INDEX_GREAT]
				/ greatestCommonDivisor);
		return leastCommonMultiplyer;

	} calculateLeastCommonMultiplyer {

		// ????°???¬?????° = ??\??????A ?? ??\??????B / ?????§??¬?´???°
		// ??????????????? int ??????????????????????????????????????????????????????????????¨ int ?????????????¶???????????????§?????????
		int leastCommonMultiplyer = input[INDEX_LITTLE] * (input[INDEX_GREAT]
				/ greatestCommonDivisor);
		return leastCommonMultiplyer;

	} int leastCommonMultiplyer = input[INDEX_LITTLE] * (input[INDEX_GREAT]
				/ greatestCommonDivisor); leastCommonMultiplyer input[INDEX_LITTLE] * (input[INDEX_GREAT]
				/ greatestCommonDivisor) input[INDEX_LITTLE] input INDEX_LITTLE (input[INDEX_GREAT]
				/ greatestCommonDivisor) input[INDEX_GREAT] input INDEX_GREAT greatestCommonDivisor return leastCommonMultiplyer; leastCommonMultiplyer int[] input input int greatestCommonDivisor greatestCommonDivisor public class Main {

	/** ??\??????????????°????????° */
	private static final int NUMBER_OF_INPUT = 2;

	/** ??\??????????????°????????????????????????????°???? */
	private static final int INDEX_LITTLE = 0;

	/** ??\??????????????°?????????????????????????????§??? */
	private static final int INDEX_GREAT = 1;

	/**
	 * ??????????????????2????????°???????????????????????????2????????°??????????¨????????????°??????????????????
	 *
	 * @param args
	 */
	public static void main(String[] args) throws IOException {

		// ??\?????????????????????????????????
		String line = null;
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		while ((line = reader.readLine()) != null) {

			// ??\?????????????????°????????????????????????
			int[] input = convertStringToIntArray(line);

			// ????¨????????????°???????????????
			Arrays.sort(input);
			int greatestCommonDivisor = calculateGreatestCommonDivisor(input);
			int leastCommonMultiplyer = calculateLeastCommonMultiplyer(input, greatestCommonDivisor);

			// ?????????????????????
			System.out.print(greatestCommonDivisor);
			System.out.print(" ");
			System.out.println(leastCommonMultiplyer);
		}

		if (reader != null) {
			reader.close();
		}
	}

	/**
	 * ????????????????????°????????????????????´??°???????????¨???????????´?????????
	 *
	 * @param line
	 *            ????????????????????°????????????
	 * @return ??´??°?????????
	 */
	protected static int[] convertStringToIntArray(String line) {
		int[] result = new int[NUMBER_OF_INPUT];

		String[] splittedLine = line.split(" ");
		for (int i = 0; i < splittedLine.length; i++) {
			result[i] = Integer.parseInt(splittedLine[i]);
		}

		return result;
	}

	/**
	 * ?????°??§??????????????´??°??????????????§??¬?´???°????????????
	 *
	 * @param input
	 *            ??´??°?????????
	 * @return ?????§??¬?´???°
	 */
	protected static int calculateGreatestCommonDivisor(int[] input) {

		// ??????????????????????????????
		int greater = input[INDEX_GREAT];
		int less = input[INDEX_LITTLE];
		int divisor = greater - less;

		while (divisor != 0) {

			// ??§?????????????????? greater ???????°??????????????????? less ????¨??????????
			if (less >= divisor) {
				greater = less;
				less = divisor;
			} else {
				greater = divisor;
			}
			divisor = greater - less;
		}

		// ??????????????¨????????????????????§??¬?´???°
		return less;
	}

	/**
	 * ?????°??§??????????????´??°????????¨?????§??¬?´???°??????????°???¬?????°????????????
	 *
	 * @param input
	 *            ??´??°?????????
	 * @param greatestCommonDivisor
	 * 			  ?????§??¬?´???°
	 *
	 * @return ????°???¬?????°
	 */
	protected static int calculateLeastCommonMultiplyer(int[] input, int greatestCommonDivisor) {

		// ????°???¬?????° = ??\??????A ?? ??\??????B / ?????§??¬?´???°
		// ??????????????? int ??????????????????????????????????????????????????????????????¨ int ?????????????¶???????????????§?????????
		int leastCommonMultiplyer = input[INDEX_LITTLE] * (input[INDEX_GREAT]
				/ greatestCommonDivisor);
		return leastCommonMultiplyer;

	}

} public class Main {

	/** ??\??????????????°????????° */
	private static final int NUMBER_OF_INPUT = 2;

	/** ??\??????????????°????????????????????????????°???? */
	private static final int INDEX_LITTLE = 0;

	/** ??\??????????????°?????????????????????????????§??? */
	private static final int INDEX_GREAT = 1;

	/**
	 * ??????????????????2????????°???????????????????????????2????????°??????????¨????????????°??????????????????
	 *
	 * @param args
	 */
	public static void main(String[] args) throws IOException {

		// ??\?????????????????????????????????
		String line = null;
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		while ((line = reader.readLine()) != null) {

			// ??\?????????????????°????????????????????????
			int[] input = convertStringToIntArray(line);

			// ????¨????????????°???????????????
			Arrays.sort(input);
			int greatestCommonDivisor = calculateGreatestCommonDivisor(input);
			int leastCommonMultiplyer = calculateLeastCommonMultiplyer(input, greatestCommonDivisor);

			// ?????????????????????
			System.out.print(greatestCommonDivisor);
			System.out.print(" ");
			System.out.println(leastCommonMultiplyer);
		}

		if (reader != null) {
			reader.close();
		}
	}

	/**
	 * ????????????????????°????????????????????´??°???????????¨???????????´?????????
	 *
	 * @param line
	 *            ????????????????????°????????????
	 * @return ??´??°?????????
	 */
	protected static int[] convertStringToIntArray(String line) {
		int[] result = new int[NUMBER_OF_INPUT];

		String[] splittedLine = line.split(" ");
		for (int i = 0; i < splittedLine.length; i++) {
			result[i] = Integer.parseInt(splittedLine[i]);
		}

		return result;
	}

	/**
	 * ?????°??§??????????????´??°??????????????§??¬?´???°????????????
	 *
	 * @param input
	 *            ??´??°?????????
	 * @return ?????§??¬?´???°
	 */
	protected static int calculateGreatestCommonDivisor(int[] input) {

		// ??????????????????????????????
		int greater = input[INDEX_GREAT];
		int less = input[INDEX_LITTLE];
		int divisor = greater - less;

		while (divisor != 0) {

			// ??§?????????????????? greater ???????°??????????????????? less ????¨??????????
			if (less >= divisor) {
				greater = less;
				less = divisor;
			} else {
				greater = divisor;
			}
			divisor = greater - less;
		}

		// ??????????????¨????????????????????§??¬?´???°
		return less;
	}

	/**
	 * ?????°??§??????????????´??°????????¨?????§??¬?´???°??????????°???¬?????°????????????
	 *
	 * @param input
	 *            ??´??°?????????
	 * @param greatestCommonDivisor
	 * 			  ?????§??¬?´???°
	 *
	 * @return ????°???¬?????°
	 */
	protected static int calculateLeastCommonMultiplyer(int[] input, int greatestCommonDivisor) {

		// ????°???¬?????° = ??\??????A ?? ??\??????B / ?????§??¬?´???°
		// ??????????????? int ??????????????????????????????????????????????????????????????¨ int ?????????????¶???????????????§?????????
		int leastCommonMultiplyer = input[INDEX_LITTLE] * (input[INDEX_GREAT]
				/ greatestCommonDivisor);
		return leastCommonMultiplyer;

	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {

	/** ??\??????????????°????????° */
	private static final int NUMBER_OF_INPUT = 2;

	/** ??\??????????????°????????????????????????????°???? */
	private static final int INDEX_LITTLE = 0;

	/** ??\??????????????°?????????????????????????????§??? */
	private static final int INDEX_GREAT = 1;

	/**
	 * ??????????????????2????????°???????????????????????????2????????°??????????¨????????????°??????????????????
	 *
	 * @param args
	 */
	public static void main(String[] args) throws IOException {

		// ??\?????????????????????????????????
		String line = null;
		BufferedReader reader = new BufferedReader(new InputStreamReader(
				System.in));
		while ((line = reader.readLine()) != null) {

			// ??\?????????????????°????????????????????????
			int[] input = convertStringToIntArray(line);

			// ????¨????????????°???????????????
			Arrays.sort(input);
			int greatestCommonDivisor = calculateGreatestCommonDivisor(input);
			int leastCommonMultiplyer = calculateLeastCommonMultiplyer(input, greatestCommonDivisor);

			// ?????????????????????
			System.out.print(greatestCommonDivisor);
			System.out.print(" ");
			System.out.println(leastCommonMultiplyer);
		}

		if (reader != null) {
			reader.close();
		}
	}

	/**
	 * ????????????????????°????????????????????´??°???????????¨???????????´?????????
	 *
	 * @param line
	 *            ????????????????????°????????????
	 * @return ??´??°?????????
	 */
	protected static int[] convertStringToIntArray(String line) {
		int[] result = new int[NUMBER_OF_INPUT];

		String[] splittedLine = line.split(" ");
		for (int i = 0; i < splittedLine.length; i++) {
			result[i] = Integer.parseInt(splittedLine[i]);
		}

		return result;
	}

	/**
	 * ?????°??§??????????????´??°??????????????§??¬?´???°????????????
	 *
	 * @param input
	 *            ??´??°?????????
	 * @return ?????§??¬?´???°
	 */
	protected static int calculateGreatestCommonDivisor(int[] input) {

		// ??????????????????????????????
		int greater = input[INDEX_GREAT];
		int less = input[INDEX_LITTLE];
		int divisor = greater - less;

		while (divisor != 0) {

			// ??§?????????????????? greater ???????°??????????????????? less ????¨??????????
			if (less >= divisor) {
				greater = less;
				less = divisor;
			} else {
				greater = divisor;
			}
			divisor = greater - less;
		}

		// ??????????????¨????????????????????§??¬?´???°
		return less;
	}

	/**
	 * ?????°??§??????????????´??°????????¨?????§??¬?´???°??????????°???¬?????°????????????
	 *
	 * @param input
	 *            ??´??°?????????
	 * @param greatestCommonDivisor
	 * 			  ?????§??¬?´???°
	 *
	 * @return ????°???¬?????°
	 */
	protected static int calculateLeastCommonMultiplyer(int[] input, int greatestCommonDivisor) {

		// ????°???¬?????° = ??\??????A ?? ??\??????B / ?????§??¬?´???°
		// ??????????????? int ??????????????????????????????????????????????????????????????¨ int ?????????????¶???????????????§?????????
		int leastCommonMultiplyer = input[INDEX_LITTLE] * (input[INDEX_GREAT]
				/ greatestCommonDivisor);
		return leastCommonMultiplyer;

	}

}