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


  • 0
    monaxia  commented on Dec. 11, 2024, 3:14 a.m.

    asbestos-free apple


  • 0
    justinnova0915  commented on Dec. 10, 2024, 3:14 a.m.

    programless programming (why is it in comic sans)


  • 0
    CodingCrab_520  commented on Oct. 22, 2023, 10:38 p.m.

    yolkless egg


  • 1
    FionaH  commented on March 4, 2023, 7:25 p.m.

    Boneless air


  • 1
    oscarhuang885  commented on March 4, 2023, 6:41 p.m.

    Boneless water


  • 2
    RioluMeltan  commented on March 6, 2021, 1:14 a.m.

    haha yes comic sans


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

    comic sans


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

    petition to bring comic sans to the rest of the site


  • 1
    AlanCCCL2S18  commented on July 2, 2018, 12:46 a.m. edited

    Paperless computers... I guess...


  • 3
    ricozhuthegreat  commented on March 4, 2018, 1:54 p.m.

    This page needs more deepfrying


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

    Boneless Pizza?


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

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


      • 9
        Dordor1218  commented on Feb. 9, 2018, 12:48 a.m.

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


    • 12
      TypicalToxic  commented on Nov. 17, 2017, 12:55 a.m.

      Seedless Bananas


      • 14
        Dordor1218  commented on Feb. 7, 2018, 9:08 p.m.

        juiceless nuts


        • -2
          jfu0952  commented on Sept. 10, 2018, 12:51 a.m. edited

          Faceless Hair


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

            This comment is hidden due to too much negative feedback. Show it anyway.


            • 0
              gavin_chen  commented on April 2, 2022, 11:22 p.m.

              uselessless piece of useless stuff