public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int st = sc.nextInt();
        int end = sc.nextInt();

        for (char a : letters.keySet()) {
            for (char b : letters.keySet()) {
                for (char c : letters.keySet()) {
                    for (char d : letters.keySet()) {
                        for (char e : letters.keySet()) {
                            seq.append(a).append(b).append(c).append(d).append(e);
                            int currentWeight = calculateWeight(seq);
                            if (currentWeight >= st && currentWeight <= end) {
                                matchingSequences.add(seq.toString());
                            }
                            seq.setLength(0);
                        }
                    }
                }
            }
        }
        if (matchingSequences.size() < 1) {
            System.out.println("No");
        } else {

            for (String match : matchingSequences) {
                System.out.printf("%s ", match);
            }
        }
    }