You are given bruce
a substring of that string.
Constraints
The sum of the lengths of the
Each string has at least one occurrence of each of the characters b
, r
, u
, c
, and e
.
Subtask 1 [20%]
The sum of the lengths of the
Subtask 2 [80%]
No additional constraints.
Input Specification
The first line contains an integer
The
Output Specification
On the bruce
a substring of
Sample Input
Copy
3
buncher
bestcomputerprogrammingteacher
bruce
Sample Output
Copy
7
15
0
Comments