needs help editing his assignment for English class. He forgot to use periods, and needs your help to fix the errors in his assignment.
If there is a word that starts with a capital letter, then there should be a period in front of the word before it. Also, the text should end with a period.
The input will consist of a series of words. There will be at least 1 word, and at most 50.
The text will only contain alphabetical characters and spaces. Words will be separated by a single space, and are all on a single line.
Output the text after you have edited it by placing all the periods where they are needed to be placed.
Sample Input 1
Justin was infuriated with him for making problem four systested Justin could not do anything about it
Sample Output 1
Justin was infuriated with him for making problem four systested. Justin could not do anything about it.
Sample Input 2
Programming is a lot of fun It should be introduced to children from a young age Computer Science is our future
Sample Output 2
Programming is a lot of fun. It should be introduced to children from a young age. Computer. Science is our future.
Sample Input 3
I want some Boneless Pizza
Sample Output 3
I want some. Boneless. Pizza.