Statement
You are given a sequence of length and a sequence of length . Every element is either or .
Define an by array by
Consider only cells whose value is . Two cells are adjacent if they share a side. A connected component is a maximal set of value- cells in which every pair can be connected using only side-adjacent value- cells.
Find the largest area of such a connected component. If there is no cell with value , print .
Input
The input is given from Standard Input in the following format:
Each case is given in the following format:
Output
For each test case, print the largest area of a connected component described above.
Constraints
- .
- .
- ().
- ().
- The sum of over all test cases does not exceed .
Subtasks
Samples
In the first test case, the six cells at the intersections of rows and columns of array all have value and form one connected component. No larger connected component exists, so the answer is .