A - Abracadabra

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

Input

Output

Sample test(s)

Input
abracadabra ab
--- Showing first 30 lines (click "Copy" to get full content) ---
Output
5
--- Showing first 30 lines (click "Copy" to get full content) ---
Input
aaaa a
--- Showing first 30 lines (click "Copy" to get full content) ---
Output
4
--- Showing first 30 lines (click "Copy" to get full content) ---