public static void main(String[] args) {

		int[] possibleNums = new int[100];
		int[] possibleDems = new int[100];

		for (int i = 1; i < 100; i++) {
			possibleNums[i] = possibleDems[i] = i;
		}
		int num = 1, den = 1;


		for (int i : possibleNums) {
			for (int j : possibleDems) {
				if (i >= 10 && j >= 10) {
					try {
						boolean b = check(i, j);
						if (b && (i / j) <= 1) {
							num *= i;
							den *= j;
						}
					} catch (Exception e) {
						// Ignore
					}
				}
			}
		}


		System.out.println("Numerator: " + num + "\nDenominator: " + den);

		System.out.println(1 / ((double) num / den));

	}