Back To School '17: ๐Ÿ…ฑaram๐Ÿ…ฑe

View as PDF

Submit solution

Points: 3 (partial)
Time limit: 1.0s
Memory limit: 256M

Author:
Problem type

d 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 Specifications

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


  • 1
    Megamicah  commented on Oct. 2, 2018, 1:05 p.m.

    ๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚๐Ÿ‘Œ๐Ÿ‘Œ๐Ÿ‘Œ๐Ÿ‘Œ๐Ÿ‘Œ๐Ÿ‘Œ๐Ÿ‘Œ๐Ÿ‘Œ๐Ÿ‘Œ๐Ÿ‘Œ๐Ÿ‘Œ

    ๐Ÿ’ชY๐Ÿ…ฑ๐Ÿ…ฑT๐Ÿ‘Š


  • 0
    AlanCCCL2S18  commented on July 1, 2018, 8:46 p.m. edited

    Paperless computers... I guess...


  • 2
    ricozhuthegreat  commented on March 4, 2018, 8:54 a.m.

    This page needs more deepfrying


  • 9
    saltyfeiyang  commented on Nov. 16, 2017, 3:05 p.m.

    Boneless Pizza?


    • 1
      CowTrainer  commented on Feb. 7, 2018, 4:12 p.m.

      If it ain't got bones in it, then it's BONELESS


      • 1
        Dordor1218  commented on Feb. 8, 2018, 7:48 p.m.

        But why waste time writing boneless when all pizzas don't have bones?


    • 6
      TypicalToxic  commented on Nov. 16, 2017, 7:55 p.m.

      Seedless Bananas


      • 10
        Dordor1218  commented on Feb. 7, 2018, 4:08 p.m.

        juiceless nuts


        • 2
          jfu0952  commented on Sept. 9, 2018, 8:51 p.m. edited

          Faceless Hair