Odd sum#9891

Odd sum

1 second
128 megabytes
Very easy

Given pairs of positive integers. Count number of ways to choose exactly one number from each pair such that the sum of those numbers is odd.

Input

First line contains number of pairs . Each of the next lines contains one pair of positive integers.

Output

Print the required number of ways, which does not exceed 10^{18}.

Examples

Example 1

Loading
Loading