def is_woodall(x):
	 
	if (x % 2 == 0): 
		return False
	if (x == 1): 
		return True
	x = x + 1 
	p = 0
	while (x % 2 == 0): 
		x = x/2
		p = p + 1
		if (p == x): 
			return True
	return False
def is_woodall(p2):
    if p2 % 2 == 0:
        return False
    if p2 == 1:
        return True
    p2 = p2 + 1
   
    p = 0
    while p2 % 2 == 0:
        p2 = p2 / 2
        p = p + 1
        if p == p2:
            return True
    return False