### Problem Statement

NOTE: This problem statement contains images that may not display properly if viewed outside of the applet.

"4Blocks" is a two player cooperative game played on a special board. The board is a grid composed of 1x1 square cells. The grid is two cells high. There are two different kinds of blocks: '1' blocks and '4' blocks. '1' blocks are 1x1, and '4' blocks are 2x2:

You must place blocks on the board so that their sides are aligned to the grid lines and no two blocks overlap. The final score is the sum of the values in each cell. '1' blocks are worth 1 point, and '4' blocks are worth 16 points because they cover 4 cells and each cell is worth 4 points.

Your friend has taken his turn and placed a number of '1' blocks on the board. The current configuration is given in the String[] grid. The j-th character of the i-th element of grid is '.' if the cell at row i, column j is empty, and '1' if your friend placed a '1' block in that cell. It is now your turn, and you can place any number of '1' or '4' blocks on the board, but you cannot remove any of the blocks that have already been placed. Return the maximum score that can be achieved. For example, the following images show one possible starting state, and the optimal placement of blocks from that state:

The final score would be 4*16 + 6*1 = 70.

### Definition

 Class: FourBlocksEasy Method: maxScore Parameters: String[] Returns: int Method signature: int maxScore(String[] grid) (be sure your method is public)

### Constraints

-grid will contain exactly 2 elements.
-Each element of grid will contain between 1 and 50 characters, inclusive.
-All elements of grid will contain the same number of characters.
-Each element of grid will contain only '.' or '1' (one).

### Examples

0)

 ```{".....1..1..", "..1.....1.."}```
`Returns: 70`
 This is the example from the statement.
1)

 ```{"....................", "...................."} ```
`Returns: 160`
 We can fit ten '4' blocks in this setup.
2)

 ```{".1.........11.........", "..1.1......11........."} ```
`Returns: 128`
3)

 ```{"......1.....1...1.", ".................."}```
`Returns: 108`

#### Problem url:

http://www.topcoder.com/stat?c=problem_statement&pm=10489

#### Problem stats url:

http://www.topcoder.com/tc?module=ProblemDetail&rd=13898&pm=10489

vexorian

#### Testers:

PabloGilberto , Andrew_Lazarev , ivan_metelsky

#### Problem categories:

Simple Search, Iteration, String Parsing