Consider a cross puzzle (where '-' represents a blank and '#' represents a black square):
- - - - #
- - # # -
- - - - -
- # # - -
# - - - -
A word must be at least two characters in length and contiguous as per traditional crossword puzzle rules. In this example, there are five 'across' words and four 'down' words.
Your job is to read in a crossword puzzle and compute the number of words across and down.
The output is a single line that contains two integers: