Snakeland is a well organised city. The houses of the city are organised in an orderly rectangular fashion with dimensions 2 * n, i.e. there are total two rows and n columns. The house in the i-th row and j-th column is also said to be the house at coordinates (i, j). Some of the houses are occupied by snakes, while the others are empty. You are given this information through an array s of dimension 2 * n, where, if s[i][j] = '*', it denotes that there is a snake in the house at coordinates (i, j), and if s[i][j] = '.', it denotes that the house is empty. 
These snakes are planning a coup against a mongoose who controls their city from outside. So, they are trying their best to meet with other snakes and spread information about the date of the coup. For spreading this information, they can just hiss from their house and usually their hiss is so loud that it will be heard in all the cells except if there is a soundproof fence built that cuts the voice. Note that the external borders of Snakeland are already built of soundproof material. The mongoose got to know about the plan, and he wants to construct sound proof fences along the borders of the houses so that no two people should be able to communicate with each other. The fence can be either vertical or horizontal.  Each fence can be of any length, but the mongoose wants to minimize the number of fences to be built. Find out the minimum number of fences that the mongoose should build.

-----Input-----
The first line of the input contains an integer T denoting number of test cases. The descriptions of the T test cases follow.
The first line of each test case contains a single integer, n.
Each of the next two lines contains n characters denoting the first and the second rows of Snakeland respectively.

-----Output-----
For each test case, output a single integer corresponding to the minimum number of fences that the mongoose needs to build.

-----Constraints-----
- 1 ≤ T ≤ 10
- 1 ≤ n ≤ 105

-----Example-----
Input
3
2
**
**
3
***
*..
3
*..
.*.

Output
2
3
1

-----Explanation-----
All the examples are shown in the pictures. The fences built are shown by red colored horizontal or vertical segments. You can see that after putting these borders no snake can talk with any another snake.

Starter code:

Solutions:
# cook your dish here
t=int(input())
while t:
 n=int(input())
 r1=input()
 r2=input()
 r1count=0
 r2count=0
 count=0
 for i in range(n):
  if(r1[i]=="*"):
   r1count+=1
  if(r2[i]=="*"):
   r2count+=1
 if(r1count>0) and (r2count>0):
  count=1
  r1count=0
  r2count=0
  i=0
  while(i<n):
   if(r1[i]=="*"):
    r1count+=1
   if(r2[i]=="*"):
    r2count+=1
   if(r1count>1) or (r2count>1):
    count+=1
    r1count=0
    r2count=0
    i-=1
   i+=1
 elif(r1count==0 and r2count>0) or (r2count==0 and r1count>0):
  count=max(r1count,r2count)-1
 else:
  count=0
 print(count)
 t-=1