PROGRAMMING:Count the number of words and output the last character of the word
This topic requires the preparation of procedures, statistics of the number of words in a line of characters, and the last character of each word output. The so-called "word" refers to the continuous string without spaces. The words are separated by spaces, and the number of spaces can be multiple.
###Input format:
Enter to give a line of characters.
###Output format:
Output the last character of each word on the first line. There is no space in the middle.
Output the number of words in the second line.
###Input example:
```in
How are you?
```
###Output example:
```out
we?
three
```
answer:If there is no answer, please comment
###Input format:
Enter to give a line of characters.
###Output format:
Output the last character of each word on the first line. There is no space in the middle.
Output the number of words in the second line.
###Input example:
```in
How are you?
```
###Output example:
```out
we?
three
```
answer:If there is no answer, please comment