

def 							__SCREAMING_SNAKE_CASE							( lowerCAmelCase:     List[str]     ,					lowerCAmelCase:     Any       )      ->				Union[str, Any]:
				_UpperCAmelCase				:						Any       						=			0
				for ele in arr:
								total_sum += product_sum(_lowerCamelCase     ,					depth + 1       ) if isinstance(_lowerCamelCase     ,					_lowerCamelCase       ) else ele
				return total_sum * depth

def 							__SCREAMING_SNAKE_CASE							( lowerCAmelCase:     str       )      ->				int:
				return product_sum(_lowerCamelCase     ,					1       )


if __name__ == "__main__":
					import doctest

					doctest.testmod()










"""simple docstring"""
def        lowerCamelCase_  (						_lowerCamelCase				):
 return 1 if input_a == 0 else 0






def        lowerCamelCase_  (						):
 assert not_gate(0				) == 1
 assert not_gate(1				) == 0


if __name__ == "__main__":
      print(not_gate(0))
      print(not_gate(1))

