You are given two strings S, P and two integers, , . You have to find the length of the longest common subsequence after performing at-most operations on string S and at-most operations on string P. In one operation, you can change a character of the string to any alphabet.
INPUT FORMAT :
First line contains a string, S .
Second line contains a string, P.
Third line contains two space separated integers, and .
OUTPUT FORMAT :-
Print the length of the longest common subsequence after performing at-most operations on string S and at-most operations on string P.
CONSTRAINTS :-
We can change first string S to and the Longest Common Subsequence will be 3 .