





def      A__       (    SCREAMING_SNAKE_CASE_   :      list						)  ->  int:






   """simple docstring"""







   if not grid or not grid[0]:
      raise TypeError('''The grid does not contain the appropriate information'''						)

   for cell_n in range(1				,	len(grid[0]						)						):
      grid[0][cell_n] += grid[0][cell_n - 1]
   _UpperCAmelCase           =   grid[0]

   for row_n in range(1				,	len(SCREAMING_SNAKE_CASE_						)						):
      _UpperCAmelCase           =   grid[row_n]
      _UpperCAmelCase           =   fill_row(SCREAMING_SNAKE_CASE_				,	SCREAMING_SNAKE_CASE_						)
      _UpperCAmelCase           =   grid[row_n]

   return grid[-1][-1]
def      A__       (    SCREAMING_SNAKE_CASE_   :      list				,	SCREAMING_SNAKE_CASE_   :      list						)  ->  list:






   """simple docstring"""







   current_row[0] += row_above[0]
   for cell_n in range(1				,	len(SCREAMING_SNAKE_CASE_						)						):
      current_row[cell_n] += min(current_row[cell_n - 1]				,	row_above[cell_n]						)

   return current_row


if __name__ == "__main__":
   import doctest

   doctest.testmod()






"""simple docstring"""



def 						__lowercase	(  snake_case_    :    int							,snake_case_    :    int		)  ->int:



    '''simple docstring'''







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







def 						__lowercase	(  )  ->None:



    '''simple docstring'''







    assert and_gate(0							,0		) == 0
    assert and_gate(0							,1		) == 0
    assert and_gate(1							,0		) == 0
    assert and_gate(1							,1		) == 1


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




