A - Abracadabra

Languages: C++, Java, Python, Kotlin
Time & Memory limits: (details)

Input

Output

Sample test(s)

Input
abracadabra ab
Output
5
Input
aaaa a
Output
4