fcbruce
 owns a farmland, the farmland has n * m grids. Some of the grids are 
stones, rich soil is the rest. fcbruce wanna plant gingers and mints on 
his farmland, and each plant could occupy area as large as possible. If 
two grids share the same edge, they can be connected to the same area. 
fcbruce is an odd boy, he wanna plant gingers, which odd numbers of 
areas are gingers, and the rest area, mints. Now he want to know the 
number of the ways he could plant.
 
        
