Square punch#2168

Square punch

1 second
128 megabytes
Medium

During the shift LKSH.August.2009, tests were conducted on a hole punch that makes square holes. The badge consists of an n \times m grid, where each cell can be punched. In the diagram, represents a punched cell, and represents an unpunched cell. How many small badges of peculiar shapes will remain?

Input

The first line contains the dimensions of the badge and (1 \leq n, m \leq 100). Each of the next lines contains the diagram of the punched badge.

Output

Output the number of resulting badges.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading