






def 			__lowercase	(						_UpperCamelCase     )    ->int:







      """simple docstring"""

      if not isinstance(_UpperCamelCase,    _UpperCamelCase     ):
            lowercase			:   Dict					   =		f"""Input value of [number={number}] must be an integer"""
            raise TypeError(_UpperCamelCase     )
      if number < 1:
            raise ValueError('''Input must be a positive integer'''     )
      return number * (2 * number - 1)


if __name__ == "__main__":
  import doctest

  doctest.testmod()





__a   				=      [
    [0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0],
    [0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0],
    [0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0],
    [0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0],
]




def 			__lowercase	(						_UpperCamelCase,    _UpperCamelCase,    _UpperCamelCase,    _UpperCamelCase     )    ->bool:







      """simple docstring"""

      return 0 <= row < rows and 0 <= col < cols




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







      """simple docstring"""

      lowercase			:   Optional[int]					   =		len(_UpperCamelCase     )
      lowercase			:   str					   =		len(mat[0]     )
      if is_safe(_UpperCamelCase,    _UpperCamelCase,    _UpperCamelCase,    _UpperCamelCase     ) and (row, col) not in seen and mat[row][col] == 1:
            seen.add((row, col)     )
            return (
                1
                + depth_first_search(row + 1,    _UpperCamelCase,    _UpperCamelCase,    _UpperCamelCase     )
                + depth_first_search(row - 1,    _UpperCamelCase,    _UpperCamelCase,    _UpperCamelCase     )
                + depth_first_search(_UpperCamelCase,    col + 1,    _UpperCamelCase,    _UpperCamelCase     )
                + depth_first_search(_UpperCamelCase,    col - 1,    _UpperCamelCase,    _UpperCamelCase     )
            )
      else:
            return 0




def 			__lowercase	(						_UpperCamelCase     )    ->int:







      """simple docstring"""

      lowercase			:   set					   =		set()

      lowercase			:   Tuple					   =		0
      for row, line in enumerate(_UpperCamelCase     ):
            for col, item in enumerate(_UpperCamelCase     ):
                  if item == 1 and (row, col) not in seen:
                        # Maximizing the area
                        lowercase			:   Tuple					   =		max(_UpperCamelCase,    depth_first_search(_UpperCamelCase,    _UpperCamelCase,    _UpperCamelCase,    _UpperCamelCase     )     )
      return max_area


if __name__ == "__main__":
  import doctest

  print(find_max_area(matrix))  # Output -> 6
  doctest.testmod()

