





import os






def 		lowerCAmelCase  (	UpperCamelCase__   :   Optional[Any]					)      ->    Optional[Any]:

						"""simple docstring"""





						__SCREAMING_SNAKE_CASE:				Any           =   len(grid[0]					)
						__SCREAMING_SNAKE_CASE:				Any           =   len(UpperCamelCase__					)

						__SCREAMING_SNAKE_CASE:				str           =   0
						__SCREAMING_SNAKE_CASE:				int           =   0
						__SCREAMING_SNAKE_CASE:				int           =   0

						# Check vertically, horizontally, diagonally at the same time (only works
						# for nxn grid)
						for i in range(UpperCamelCase__					):
												for j in range(n_rows - 3					):
																		__SCREAMING_SNAKE_CASE:				Dict           =   grid[j][i] * grid[j + 1][i] * grid[j + 2][i] * grid[j + 3][i]
																		__SCREAMING_SNAKE_CASE:				int           =   grid[i][j] * grid[i][j + 1] * grid[i][j + 2] * grid[i][j + 3]

																		# Left-to-right diagonal (\) product
																		if i < n_columns - 3:
																								__SCREAMING_SNAKE_CASE:				Optional[int]           =   (
																								    grid[i][j]
																								    * grid[i + 1][j + 1]
																								    * grid[i + 2][j + 2]
																								    * grid[i + 3][j + 3]
																								)

																		# Right-to-left diagonal(/) product
																		if i > 2:
																								__SCREAMING_SNAKE_CASE:				List[str]           =   (
																								    grid[i][j]
																								    * grid[i - 1][j + 1]
																								    * grid[i - 2][j + 2]
																								    * grid[i - 3][j + 3]
																								)

																		__SCREAMING_SNAKE_CASE:				Tuple           =   max(
																		    UpperCamelCase__       ,			UpperCamelCase__       ,			UpperCamelCase__       ,			UpperCamelCase__					)
																		if max_product > largest:
																								__SCREAMING_SNAKE_CASE:				str           =   max_product

						return largest






def 		lowerCAmelCase  (	)      ->    Optional[Any]:

						"""simple docstring"""





						__SCREAMING_SNAKE_CASE:				str           =   []
						with open(os.path.dirname(UpperCamelCase__					) + '''/grid.txt'''					) as file:
												for line in file:
																		grid.append(line.strip('''\n'''					).split(''' '''					)					)

						__SCREAMING_SNAKE_CASE:				Tuple           =   [[int(UpperCamelCase__					) for i in grid[j]] for j in range(len(UpperCamelCase__					)					)]

						return largest_product(UpperCamelCase__					)


if __name__ == "__main__":
							print(solution())





import pprint

import requests

lowerCamelCase__						=				"https://zenquotes.io/api"


def 				__A()		->					list:

		"""simple docstring"""






		return requests.get(API_ENDPOINT_URL + """/today"""			).json()


def 				__A()		->					list:

		"""simple docstring"""






		return requests.get(API_ENDPOINT_URL + """/random"""			).json()


if __name__ == "__main__":
		lowerCamelCase__						=				random_quotes()
		pprint.pprint(response)



