~/algor $ cat problems/shaxmat-donasi-qiymati
Chess piece value
Easy
1000 ms
64 MB
21%
The letter of a chess piece is given. Print its usual value: P (pawn) — $1$, N (knight) — $3$, B (bishop) — $3$, R (rook) — $5$, Q (queen) — $9$, K (king) — $0$ (the king is never traded).
Input
One capital Latin letter.
Output
One integer — the value of the piece.
Note
The letter is only P, N, B, R, Q or K.
Examples
Input #1
R
Output #1
5
Input #2
N
Output #2
3