Update problem-a12.pl

simplified, and print the sentence that was entered.