Problem: Rudolf is on his way to the castle. Before getting into the castle, the security staff asked him a question:
Given two binary numbers and of length . How many different ways of swapping two digits in (only in , not ) so that bitwise OR of these two numbers will be changed? In other words, let be the bitwise OR of and , you need to find the number of ways of swapping two bits in so that bitwise OR will not be equal to .
Note that binary numbers can contain leading zeros so that length of each number is exactly .
Bitwise OR is a binary operation. A result is a binary number which contains a one in each digit if there is a one in at least one of the two numbers. For example, OR = .
Well, to your surprise, you are not Rudolf, and you don't need to help him You are the security staff! Please find the number of ways of swapping two bits in so that bitwise OR will be changed.
Input Format: The first line contains one integer () — the number of bits in each number.
The second line contains a binary number of length .
The third line contains a binary number of length .
Output Format: Print the number of ways to swap two bits in so that bitwise OR will be changed.
Note: In the first sample, you can swap bits that have indexes , , , and .
In the second example, you can swap bits that have indexes , , , , , and .