def same_Length(A,B):
     
    while (A > 0 and B > 0): 
        A = A / 10; 
        B = B / 10; 
    if (A == 0 and B == 0): 
        return True; 
    return False; 
def same_Length(A, B2):
    while A > 0 and B2 > 0:
        A = A / 10
       
        B2 = B2 / 10
    if A == 0 and B2 == 0:
        return True
    return False