

def       a__					(		UpperCAmelCase							:      int    ,			UpperCAmelCase							:      int      )  ->						int:
  return int((input_a, input_a).count(0      ) != 0      )

def       a__					(		)  ->						None:
  assert nand_gate(0    ,			0      ) == 1
  assert nand_gate(0    ,			1      ) == 1
  assert nand_gate(1    ,			0      ) == 1
  assert nand_gate(1    ,			1      ) == 0


if __name__ == "__main__":
     print(nand_gate(0, 0))
     print(nand_gate(0, 1))
     print(nand_gate(1, 0))
     print(nand_gate(1, 1))








def       a__					(		UpperCAmelCase							:      int      )  ->						bool:
  if not isinstance(UpperCAmelCase    ,			UpperCAmelCase      ):
    UpperCAmelCase	:							List[str]						=			f'''Input value of [number={number}] must be an integer'''
    raise TypeError(UpperCAmelCase      )
  if number < 0:
    return False
  UpperCAmelCase	:							List[str]						=			number * number
  while number > 0:
    if number % 10 != number_square % 10:
      return False
    number //= 10
    number_square //= 10
  return True


if __name__ == "__main__":
     import doctest

     doctest.testmod()





