Yavuz loves to play basketball. Also he is interested in with math and sometimes he produces little funny mathematic games. Yavuz has written a program which finds out if number N is an Emirp number or not. But, at the end of the game, the ball hits head of Yavuz. Now he cannot run the program. For Yavuz, find if number N is Emirp number or not. An Emirp (prime spelled backwards) is a prime number that results in a different prime when its decimal digits are reversed. For example, 13 is an Emirp number because in backwards (31) also prime. (The numbers which are same in backwards with itself is not Emirp numbers).

Contributed by Burak Bugrul