"Mirror prime" numbers
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
We will call a number "mirror prime", if it is prime, and the number written in a reverse order is also prime.
Find the number of "mirror primes" from a to b.
![prb22](https://static.e-olymp.com/content/1c/1c64fb31b94c748fa1b0e2457655d708244360d8.gif)
Input
Two integers a and b (1 ≤ a ≤ b ≤ 10000).
Output
Print the number of "mirror primes" from a to b inclusive.
Examples
Input #1
Answer #1
Submissions 28K
Acceptance rate 23%