public static void main(String[] args) {
        int numerator = 1;
        int denominator = 1;
        for (int i = 10; i < 99; i++) {
            int[] numDigits = Utils.digitsOf(i);
            for (int j = i + 1; j < 100; j++) {
                int[] denomDigits = Utils.digitsOf(j);
                int k1 = 0;
                int k2 = 0;
                if (numDigits[1] == denomDigits[0]) {
                    k1 = 0;
                    k2 = 1;
                } else if (numDigits[0] == denomDigits[1]) {
                    k1 = 1;
                    k2 = 0;
                }
                if (k1 != 0 || k2 != 0) {
                    int[] fraction1 = reduceFraction(i, j);
                    int[] fraction2 = reduceFraction(numDigits[k1], denomDigits[k2]);
                    if (fraction1[0] == fraction2[0] && fraction1[1] == fraction2[1]) {
                        numerator *= fraction1[0];
                        denominator *= fraction1[1];
                        System.out.println(i + "/" + j);
                    }
                }
            }
        }
        int[] result = reduceFraction(numerator, denominator);
        System.out.println(result[1]);
    }