Time limit
2s
Memory limit
128 MB
An 8×8 chessboard is colored with alternating black and white squares. The top-left square, (0, 0), is white. Given the current board, find how many pieces are on white squares.
Eight lines are given, one for each row of the board. . means an empty square, and F means a square with a piece on it.
Print the number of pieces on white squares.