Time limit
1s
Memory limit
32 MB
FEN (Forsyth-Edwards Notation) describes the contents of a chessboard in one line.
/ character.PNBRQK.pnbrqk.1 through 8.8.You are given one chessboard description per line. The described position does not have to be legal under chess rules. For each board, compute how many squares are empty and are not attacked by any piece.
The input consists of several lines. Each line contains one FEN description of a chessboard. Input lines contain no whitespace.
For each input line, output one integer on its own line: the number of empty squares that are not attacked by any piece.