You are a modern artist looking to create modern art in modern ways.
You will paint on a canvas
The paintbrush you'll be using is modern as well. Painting a white tile will turn it red, and painting a red tile will turn it white. Since it's the modern trend, you are only willing to make strokes that paint exactly
Even the value of modern art is determined in modern ways. The
Constraints
Subtask 1 [5%]
Subtask 2 [95%]
No additional constraints.
Input Specification
The first line will contain three integers,
The next line will contain
Output Specification
Output the number of paintings you can create with value equal to
Sample Input
3 2 9
3 9 6
Sample Output
1
Comments