private boolean find(int n, int k) {
        boolean result = false;
        while (n > 0) {
            if (n % 10 == k) {
                result = true;
                break;
            } else
                n = n / 10;
        }
        return result;
    }