import java.util.*;
import java.math.*;
class sieveOfEratosthenes
{
public void find(int a, int b){
boolean[] prime = new boolean[b+1];
prime[0] = false;
prime[1] = false;
for(int i = 2; i <= b; ++i){
if(prime[i]){
for(int j = i*i; j <= b; j += i){
prime[j] = false;
}
}
}
boolean primes_found = false; //Попадает ли в промежуток хоть одно простое число?
for(int i = a; i <= b; ++i){
if(prime[i]){
primes_found = true;
}
}
if(!primes_found
) System.
out.
print("Not found"); }
}
class Main
{
public static void main
(String[] args
) {
Scanner in
= new Scanner
(System.
in); int a, b;
a = in.nextInt();
b = in.nextInt();
sieveOfEratosthenes c = new sieveOfEratosthenes();
c.find(a, b);
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5tYXRoLio7CgpjbGFzcyBzaWV2ZU9mRXJhdG9zdGhlbmVzCnsKCXB1YmxpYyB2b2lkIGZpbmQoaW50IGEsIGludCBiKXsKCQlib29sZWFuW10gcHJpbWUgPSBuZXcgYm9vbGVhbltiKzFdOwoJCUFycmF5cy5maWxsKHByaW1lLCBCb29sZWFuLlRSVUUpOwoJCXByaW1lWzBdID0gZmFsc2U7CgkJcHJpbWVbMV0gPSBmYWxzZTsKCQlmb3IoaW50IGkgPSAyOyBpIDw9IGI7ICsraSl7CgkJCWlmKHByaW1lW2ldKXsKCQkJCWZvcihpbnQgaiA9IGkqaTsgaiA8PSBiOyBqICs9IGkpewoJCQkJCXByaW1lW2pdID0gZmFsc2U7CgkJCQl9CQoJCQl9CQoJCX0KCQkKCQlib29sZWFuIHByaW1lc19mb3VuZCA9IGZhbHNlOyAvL9Cf0L7Qv9Cw0LTQsNC10YIg0LvQuCDQsiDQv9GA0L7QvNC10LbRg9GC0L7QuiDRhdC+0YLRjCDQvtC00L3QviDQv9GA0L7RgdGC0L7QtSDRh9C40YHQu9C+PwoJCWZvcihpbnQgaSA9IGE7IGkgPD0gYjsgKytpKXsKCQkJaWYocHJpbWVbaV0pewoJCQkJU3lzdGVtLm91dC5wcmludChpICsg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