public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int start = input.nextInt();
		int end = input.nextInt();
		boolean isAny = false;
		for (int i = start; i <= end; i++) {
			if(isSymetric(Integer.toString(i))){
				System.out.println(i);
				isAny = true;
			}
		}
		if (!isAny) {
			System.out.println("No");
		}
	}