There are n strings of even length and m strings of odd length. You can select any number of strings (non-zero) from these collections and the resulting string is the concatenation of the chosen strings. You cannot break any string, therefore, you either select the whole string or you do not select it at all.
The total_length of the string is equal to the sum of the length of all the selected strings. Your task is to determine how many of these total_length are even. Since this number can be very large, print it modulo 109+7.
Input format
Output format
Print a single integer denoting the answer to the problem modulo 109+7.
In the first case, the 3 possibilities are: choose the first even length string, choose the second even length string or choose the first and second string both. In no other case you can have an even total_length.
In the second case, the 3 possibilities are: choose the first even length string, choose both the odd length strings or choose all the strings.