Despite being only 400 elo, Shane loves playing chess. However, he has only ever played online chess and does not know what the pieces actually look like in real life. Shane bought a brand new chess set, so he can play over the board with his friends. However, he is having trouble determining if a piece is a queen or not. In chess, there are 8 different pieces: pawns, knights, bishops, rooks, the queen, and the king, denoted by P
, N
, B
, R
, Q
, and K
respectively. Given a piece, can you tell him if the piece is a queen?
Input Specification
The first and only line will contain one character from the string PNBRQK
.
Output Specification
Output yes
if the piece is a queen, and no
otherwise.
Sample Input 1
Q
Sample Output 1
yes
Sample Input 2
K
Sample Output 2
no
Comments