



"""simple docstring"""







def      __UpperCAmelCase      (    __lowerCamelCase						,     __lowerCamelCase	)							->      int:
		return int((input_a, input_a).count(0	) != 0	)



def      __UpperCAmelCase      (    )							->      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))





"""simple docstring"""







def      __UpperCAmelCase      (    __lowerCamelCase = 50	)							->      int:
		lowercase__   :    int				=			[[0] * 3 for _ in range(length + 1	)]

		for row_length in range(length + 1	):
				for tile_length in range(2						,     5	):
						for tile_start in range(row_length - tile_length + 1	):
								different_colour_ways_number[row_length][tile_length - 2] += (
								    different_colour_ways_number[row_length - tile_start - tile_length][
								        tile_length - 2
								    ]
								    + 1
								)

		return sum(different_colour_ways_number[length]	)


if __name__ == "__main__":
							print(F'''{solution() = }''')
