class A:
def __bool__(self):
print('__bool__')
return True
def __len__(self):
print('__len__')
return 1
class B:
return 0
print(bool(A()))
print(len(A()))
print(bool(B()))
print(len(B()))