There is an old fort on a hill above the village of Chandragiri. Its gate is special. Long ago, the king's engineer Meera Bai built this gate. It stops travellers who carry fake tokens.
Every token has a number on it. A traveller holds up the token. A shiny stone mirror on the gate shows the number written from right to left. The gate opens only if the mirror shows exactly the same number. Every digit and sign must be in the same place.
Ravi is the night guard. He checks thousands of tokens every night, and his eyes are tired. Write a program that does this check for him.
