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


  • 1
    RioluMeltan  commented on March 5, 2021, 8:14 p.m.

    haha yes comic sans


  • 1
    kdrkdr  commented on March 18, 2020, 1:14 p.m.

    comic sans


  • 12
    p1geon  commented on April 6, 2019, 2:36 p.m.

    petition to bring comic sans to the rest of the site


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

    Paperless computers... I guess...


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

    This page needs more deepfrying


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

    Boneless Pizza?


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

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


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

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


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

      Seedless Bananas


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

        juiceless nuts


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

          Faceless Hair


          • -16
            GD_FrostByte  commented on Oct. 28, 2018, 10:27 a.m. edit 4

            This comment is hidden due to too much negative feedback. Click here to view it.