## Back To School '18: Harambe

View as PDF

Points: 3
Time limit: 2.0s
Memory limit: 64M

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

As we all know, plagiarism is a huge issue, especially in Junyi's school. Being the exceptional student Junyi is, he is helping his Engrish teacher check for plagiarism.

Students nowadays are extremely lazy, meaning that they will only change individual letters in words to other letters. They will not change spaces to letters, or vice versa.

Plagiarism only occurs when the number of letters changed is less than or equal to .

Junyi is busy this weekend, so he asks you to help him determine whether some sentences were plagiarized or not.

#### Input Specification

The first line will contain the original sentence, .

The second line will contain the student's potentially plagiarized sentence, .

The third line will contain the integer .

Both sentences will only consist of lowercase latin characters and spaces. There will only be one space between any 2 words, and there will be no leading/trailing spaces.

#### Output Specification

Print Plagiarized if the number of characters changed is less than or equal to .

Print No plagiarism if the number of characters changed is greater than , or a letter is in the place of a space, and vice versa.

#### Sample Input 1

this is definitely not plagiarized
15

#### Sample Output 1

Plagiarized

#### Sample Input 2

english is the best subject
engrish is the good subject
2

#### Sample Output 2

No plagiarism

#### Sample Input 3

this is the sentence
this is a sentencess
20

#### Sample Output 3

No plagiarism

#### Explanation for Sample Input 3

There is a space in the place of a letter, so No plagiarism is printed despite the value of .