'''simple docstring'''


def   A_      (       SCREAMING_SNAKE_CASE_ ,	SCREAMING_SNAKE_CASE_						)			->int:
  return int(input_a == input_a == 0						)

def   A_      (       )			->None:
  print("""Truth Table of NOR Gate:"""						)
  print("""|   Input 1   |  Input 2  | Output |"""						)
  print(f"""|      0      |    0      |  {nor_gate(0 ,	0						)}     |"""						)
  print(f"""|      0      |    1      |  {nor_gate(0 ,	1						)}     |"""						)
  print(f"""|      1      |    0      |  {nor_gate(1 ,	0						)}     |"""						)
  print(f"""|      1      |    1      |  {nor_gate(1 ,	1						)}     |"""						)


if __name__ == "__main__":
       import doctest

       doctest.testmod()
       main()


'''simple docstring'''


import math

def   A_      (       SCREAMING_SNAKE_CASE_						)			->int:

  if not isinstance(SCREAMING_SNAKE_CASE_ ,	SCREAMING_SNAKE_CASE_						):
    lowercase_     =       f"""Input value of [number={number}] must be an integer"""
    raise TypeError(SCREAMING_SNAKE_CASE_						)

  if number < 1:
    lowercase_     =       f"""Input value of [number={number}] must be > 0"""
    raise ValueError(SCREAMING_SNAKE_CASE_						)
  elif number == 1:
    return 3
  elif number == 2:
    return 5
  else:
    lowercase_     =       int(math.log(number // 3 ,	2						)						) + 2

    lowercase_     =       [3, 5]
    lowercase_     =       2
    lowercase_     =       3
    for block in range(1 ,	SCREAMING_SNAKE_CASE_						):
      for _ in range(SCREAMING_SNAKE_CASE_						):
        proth_list.append(2 ** (block + 1) + proth_list[proth_index - 1]						)
        proth_index += 1
      increment *= 2

  return proth_list[number - 1]


if __name__ == "__main__":
       import doctest

       doctest.testmod()

       for number in range(11):
              __snake_case						  =		0
              try:
                     __snake_case						  =		proth(number)
              except ValueError:
                     print(f'''ValueError: there is no {number}th Proth number''')
                     continue

              print(f'''The {number}th Proth number: {value}''')

