int Comm_Ancestor(SqTree T,int i,int j){
if(T[i]!='#'&&T[j]!='#'){
while(i!=j){
if(i>j) i=i/2;
else j=j/2;
}
return T[i];
}
}
int Comm_Ancestor(SqTree T,int i,int j){
if(T[i]!='#'&&T[j]!='#'){
while(i!=j){
if(i>j) i=i/2;
else j=j/2;
}
return T[i];
}
}