Back To School '17: 🅱aram🅱e

View as PDF

Submit solution

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

Author:
Problem type
Allowed languages
Ada, Assembly, Awk, Brain****, C, C#, C++, COBOL, CommonLisp, D, Dart, F#, Forth, Fortran, Go, Groovy, Haskell, Intercal, Java, JS, Kotlin, Lisp, Lua, Nim, ObjC, OCaml, Octave, Pascal, Perl, PHP, Pike, Prolog, Python, Racket, Ruby, Rust, Scala, Scheme, Sed, Swift, TCL, Text, Turing, VB, Zig

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


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

    comic sans


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

    petition to bring comic sans to the rest of the site


  • 2
    bobxiong88  commented on April 6, 2019, 1:56 a.m.

    e b i c


  • -3
    Jeremiah  commented on Jan. 8, 2019, 6:55 a.m.

    does anyone know how to do this? I confuzzled! Thanks for anyone that can help Ill like you


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

    😂😂😂😂😂😂😂😂👌👌👌👌👌👌👌👌👌👌👌

    💪Y🅱🅱T👊


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


  • 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


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


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

          Faceless Hair


          • -13
            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.