


'''simple docstring'''





import os
import sys
from contextlib import contextmanager


# Windows only
if os.name == "nt":
					import ctypes
					import msvcrt  # noqa
					class 						a__					(					ctypes.Structure   ):





								'''simple docstring'''

								A						:				Dict					      =			[('''size''', ctypes.c_int), ('''visible''', ctypes.c_byte)]






def 						UpperCAmelCase__(				):






			"""simple docstring"""




			if os.name == "nt":
						__A=	CursorInfo()
						__A=	ctypes.windll.kernelaa.GetStdHandle(-11 )
						ctypes.windll.kernelaa.GetConsoleCursorInfo(_SCREAMING_SNAKE_CASE,ctypes.byref(_SCREAMING_SNAKE_CASE ) )
						__A=	False
						ctypes.windll.kernelaa.SetConsoleCursorInfo(_SCREAMING_SNAKE_CASE,ctypes.byref(_SCREAMING_SNAKE_CASE ) )
			elif os.name == "posix":
						sys.stdout.write('\033[?25l' )
						sys.stdout.flush()






def 						UpperCAmelCase__(				):






			"""simple docstring"""




			if os.name == "nt":
						__A=	CursorInfo()
						__A=	ctypes.windll.kernelaa.GetStdHandle(-11 )
						ctypes.windll.kernelaa.GetConsoleCursorInfo(_SCREAMING_SNAKE_CASE,ctypes.byref(_SCREAMING_SNAKE_CASE ) )
						__A=	True
						ctypes.windll.kernelaa.SetConsoleCursorInfo(_SCREAMING_SNAKE_CASE,ctypes.byref(_SCREAMING_SNAKE_CASE ) )
			elif os.name == "posix":
						sys.stdout.write('\033[?25h' )
						sys.stdout.flush()






@contextmanager
def 						UpperCAmelCase__(				):






			"""simple docstring"""




			try:
						hide_cursor()
						yield
			finally:
						show_cursor()







'''simple docstring'''





def 						UpperCAmelCase__(				_SCREAMING_SNAKE_CASE					: int,_SCREAMING_SNAKE_CASE					: int ):






			"""simple docstring"""




			return int((input_a, input_a).count(1 ) != 0 )






def 						UpperCAmelCase__(				):






			"""simple docstring"""




			assert or_gate(0,0 ) == 0
			assert or_gate(0,1 ) == 1
			assert or_gate(1,0 ) == 1
			assert or_gate(1,1 ) == 1


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



