Given a string &
, which can be any lowercase English letter, and string
Constraints
Input Specification
The first line of input contains string
The second line of input contains string
The final line has a single integer,
Output Specification
Output the value of
Sample Input 1
Copy
bab
aba
4
Sample Output 1
Copy
2
Sample Input 2
Copy
ba&
aba
4
Sample Output 2
Copy
3
Comments