PROGRAMMING:Count words and spaces
There are three lines of text, find out how many spaces and how many words there are (specify one or more spaces between words as intervals). If a word ends at the end of a line, there should be a space at the beginning of the next line, and a space after a period and a comma.
###Input format:
There are several groups of test data, which are processed to the end of the file. Enter three lines of text per group (no more than 80 characters per line).
###Output format:
Each group outputs the number of words and spaces in three lines of text.
###Input example:
Here is a set of inputs. For example:
```in
Math, English, C Language.
Data structure. Linear list, Stack, Queue,
and String, Array, Tree, Graph, Search, Sorting.
```
###Output example:
The corresponding output is given here. For example:
```out
17 27
```
answer:If there is no answer, please comment
###Input format:
There are several groups of test data, which are processed to the end of the file. Enter three lines of text per group (no more than 80 characters per line).
###Output format:
Each group outputs the number of words and spaces in three lines of text.
###Input example:
Here is a set of inputs. For example:
```in
Math, English, C Language.
Data structure. Linear list, Stack, Queue,
and String, Array, Tree, Graph, Search, Sorting.
```
###Output example:
The corresponding output is given here. For example:
```out
17 27
```
answer:If there is no answer, please comment