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.
Input Specification
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 Specification
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.
Comments
yolkless egg
Boneless air
Boneless water
haha yes comic sans
comic sans
petition to bring comic sans to the rest of the site
Paperless computers... I guess...
This page needs more deepfrying
Boneless Pizza?
If it ain't got bones in it, then it's BONELESS
But why waste time writing boneless when all pizzas don't have bones?
hmmm
oh no...
Seedless Bananas
juiceless nuts
Faceless Hair
This comment is hidden due to too much negative feedback. Show it anyway.
uselessless piece of useless stuff