Biprime numbers#2972

Biprime numbers

1 second
64 megabytes
Very easy

A natural number greater than is called prime if it is divisible only by and itself.

A number is called biprime if it is prime, and its decimal representation can be obtained by concatenating the decimal representations of two other prime numbers P_1 and P_2. P_1 and P_2 must not have leading zeros.

For example, the prime number is biprime because it is written using the two prime numbers and . Similarly, the prime number is biprime because it is made from and , which are both prime. The number is not biprime, since expressing it as and would require the second number to have a leading zero.

Given a natural number (1 < N \leq 10^{10}), determine whether it is biprime.

Input

The input file contains a single natural number (1 < N \leq 10^{10}).

Output

Output YES if the number from the input file is biprime; otherwise, output NO.

Examples

Example 1

Loading
Loading