


'''simple docstring'''
def       _lowercase							(					UpperCamelCase__							:       Any      ):
 __A	:		Any	  =      len(UpperCamelCase__      )
 __A	:		Dict	  =      sum(UpperCamelCase__      )

 __A	:		Dict	  =      [[False for x in range(s + 1      )] for y in range(n + 1      )]

 for i in range(1,					n + 1      ):
  __A	:		Optional[int]	  =      True

 for i in range(1,					s + 1      ):
  __A	:		List[Any]	  =      False

 for i in range(1,					n + 1      ):
  for j in range(1,					s + 1      ):
   __A	:		Tuple	  =      dp[i][j - 1]

   if arr[i - 1] <= j:
    __A	:		Optional[Any]	  =      dp[i][j] or dp[i - 1][j - arr[i - 1]]

 for j in range(int(s / 2      ),					-1,					-1      ):
  if dp[n][j] is True:
   __A	:		Any	  =      s - 2 * j
   break

 return diff










'''simple docstring'''
def       _lowercase							(					UpperCamelCase__							:       int,					UpperCamelCase__							:       int      ):
 return 1 if input_a == input_a else 0


def       _lowercase							(					):
 assert xnor_gate(0,					0      ) == 1
 assert xnor_gate(0,					1      ) == 0
 assert xnor_gate(1,					0      ) == 0
 assert xnor_gate(1,					1      ) == 1


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






