

"""simple docstring"""






class      _UpperCAmelCase      :  # Public class to implement a graph
			def __init__(		self   ,		_A   ,		_A   ,		_A  )     ->     int:






				'''simple docstring'''







				_UpperCAmelCase     :				Dict          =       row
				_UpperCAmelCase     :				List[str]          =       col
				_UpperCAmelCase     :				List[str]          =       graph
			def 				__snake_case			(		self   ,		_A   ,		_A   ,		_A  )     ->     Tuple:






				'''simple docstring'''







				return (
				    0 <= i < self.ROW
				    and 0 <= j < self.COL
				    and not visited[i][j]
				    and self.graph[i][j]
				)
			def 				__snake_case			(		self   ,		_A   ,		_A   ,		_A  )     ->     int:






				'''simple docstring'''







				_UpperCAmelCase     :				Optional[int]          =       [-1, -1, -1, 0, 0, 1, 1, 1]  # Coordinate order
				_UpperCAmelCase     :				Optional[Any]          =       [-1, 0, 1, -1, 1, -1, 0, 1]
				_UpperCAmelCase     :				List[str]          =       True  # Make those cells visited
				for k in range(8  ):
					if self.is_safe(i + row_nbr[k]   ,		j + col_nbr[k]   ,		_lowerCamelCase  ):
						self.diffs(i + row_nbr[k]   ,		j + col_nbr[k]   ,		_lowerCamelCase  )
			def 				__snake_case			(		self  )     ->     Optional[int]:  # And finally, count all islands.






				'''simple docstring'''







				_UpperCAmelCase     :				Tuple          =       [[False for j in range(self.COL  )] for i in range(self.ROW  )]
				_UpperCAmelCase     :				List[Any]          =       0
				for i in range(self.ROW  ):
					for j in range(self.COL  ):
						if visited[i][j] is False and self.graph[i][j] == 1:
							self.diffs(_lowerCamelCase   ,		_lowerCamelCase   ,		_lowerCamelCase  )
							count += 1
				return count






"""simple docstring"""


def      lowerCamelCase_					(   __lowerCAmelCase  ,       __lowerCAmelCase							)				->   float:




						'''simple docstring'''



						return price * (1 + tax_rate)


if __name__ == "__main__":
	print(F'''{price_plus_tax(100, 0.25) = }''')
	print(F'''{price_plus_tax(125.50, 0.05) = }''')


