{"raw_statement":[{"iden":"problem statement","content":"There is a grid with $H$ rows from top to bottom and $W$ columns from left to right. Each square has a piece placed on it or is empty.\nThe state of the grid is represented by $H$ strings $S_1, S_2, \\ldots, S_H$, each of length $W$.  \nIf the $j$\\-th character of $S_i$ is `#`, the square at the $i$\\-th row from the top and $j$\\-th column from the left has a piece on it;  \nif the $j$\\-th character of $S_i$ is `.`, the square at the $i$\\-th row from the top and $j$\\-th column from the left is empty.\nHow many squares in the grid have pieces on them?"},{"iden":"constraints","content":"*   $1\\leq H,W \\leq 10$\n*   $H$ and $W$ are integers.\n*   $S_i$ is a string of length $W$ consisting of `#` and `.`."},{"iden":"input","content":"The input is given from Standard Input in the following format:\n\n$H$ $W$\n$S_1$\n$S_2$\n$\\vdots$\n$S_H$"},{"iden":"sample input 1","content":"3 5\n#....\n.....\n.##.."},{"iden":"sample output 1","content":"3\n\nThe following three squares have pieces on them:\n\n*   the square at the $1$\\-st row from the top and $1$\\-st column from the left;\n*   the square at the $3$\\-rd row from the top and $2$\\-nd column from the left;\n*   the square at the $3$\\-rd row from the top and $3$\\-rd column from the left.\n\nThus, $3$ should be printed."},{"iden":"sample input 2","content":"1 10\n.........."},{"iden":"sample output 2","content":"0\n\nSince no square has a piece on it, $0$ should be printed."},{"iden":"sample input 3","content":"6 5\n#.#.#\n....#\n..##.\n####.\n..#..\n#####"},{"iden":"sample output 3","content":"16"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}