Pusheen is organizing a party for her friends! She is producing signed cards and giving them to all of her friends. She decides to take pictures of them to archive later. The OCR on Pusheen's smartphone transcribed most of the card properly, but due to the nature of signatures, the OCR might have mangled her name. Help Pusheen figure out how many errors the OCR made!
The OCR produced a string pusheen
,
and the number of errors is the number of indices where the OCR'ed string does not match with pusheen
.
Constraints
pusheen
.
In tests worth 14 marks, the correct letters in the OCR will form a prefix of the string.
Input Specification
The first and only line of input contains a string
Output Specification
Output, on a single line, the number of errors in the string.
Sample Input 1
pusheen
Sample Output 1
0
Explanation for Sample Output 1
In this example, the OCR worked properly and there were no errors!
Sample Input 2
neehsup
Sample Output 2
6
Explanation for Sample Output 2
In this example, the OCR somehow reversed Pusheen's name! Only the h
is in the correct location, so there are 6 errors.
Comments