





'''simple docstring'''


def    __a (     UpperCAmelCase       ,			UpperCAmelCase = 2    )      ->float:



	"""simple docstring"""







	return round((float(UpperCAmelCase    ) * 9 / 5) + 32       ,			UpperCAmelCase    )




def    __a (     UpperCAmelCase       ,			UpperCAmelCase = 2    )      ->float:



	"""simple docstring"""







	return round(float(UpperCAmelCase    ) + 273.15       ,			UpperCAmelCase    )




def    __a (     UpperCAmelCase       ,			UpperCAmelCase = 2    )      ->float:



	"""simple docstring"""







	return round((float(UpperCAmelCase    ) * 9 / 5) + 491.67       ,			UpperCAmelCase    )




def    __a (     UpperCAmelCase       ,			UpperCAmelCase = 2    )      ->float:



	"""simple docstring"""







	return round((float(UpperCAmelCase    ) - 32) * 5 / 9       ,			UpperCAmelCase    )




def    __a (     UpperCAmelCase       ,			UpperCAmelCase = 2    )      ->float:



	"""simple docstring"""







	return round(((float(UpperCAmelCase    ) - 32) * 5 / 9) + 273.15       ,			UpperCAmelCase    )




def    __a (     UpperCAmelCase       ,			UpperCAmelCase = 2    )      ->float:



	"""simple docstring"""







	return round(float(UpperCAmelCase    ) + 459.67       ,			UpperCAmelCase    )




def    __a (     UpperCAmelCase       ,			UpperCAmelCase = 2    )      ->float:



	"""simple docstring"""







	return round(float(UpperCAmelCase    ) - 273.15       ,			UpperCAmelCase    )




def    __a (     UpperCAmelCase       ,			UpperCAmelCase = 2    )      ->float:



	"""simple docstring"""







	return round(((float(UpperCAmelCase    ) - 273.15) * 9 / 5) + 32       ,			UpperCAmelCase    )




def    __a (     UpperCAmelCase       ,			UpperCAmelCase = 2    )      ->float:



	"""simple docstring"""







	return round((float(UpperCAmelCase    ) * 9 / 5)       ,			UpperCAmelCase    )




def    __a (     UpperCAmelCase       ,			UpperCAmelCase = 2    )      ->float:



	"""simple docstring"""







	return round((float(UpperCAmelCase    ) - 491.67) * 5 / 9       ,			UpperCAmelCase    )




def    __a (     UpperCAmelCase       ,			UpperCAmelCase = 2    )      ->float:



	"""simple docstring"""







	return round(float(UpperCAmelCase    ) - 459.67       ,			UpperCAmelCase    )




def    __a (     UpperCAmelCase       ,			UpperCAmelCase = 2    )      ->float:



	"""simple docstring"""







	return round((float(UpperCAmelCase    ) * 5 / 9)       ,			UpperCAmelCase    )




def    __a (     UpperCAmelCase       ,			UpperCAmelCase = 2    )      ->float:



	"""simple docstring"""







	return round((float(UpperCAmelCase    ) * 1.25 + 273.15)       ,			UpperCAmelCase    )




def    __a (     UpperCAmelCase       ,			UpperCAmelCase = 2    )      ->float:



	"""simple docstring"""







	return round((float(UpperCAmelCase    ) * 2.25 + 32)       ,			UpperCAmelCase    )




def    __a (     UpperCAmelCase       ,			UpperCAmelCase = 2    )      ->float:



	"""simple docstring"""







	return round((float(UpperCAmelCase    ) * 1.25)       ,			UpperCAmelCase    )




def    __a (     UpperCAmelCase       ,			UpperCAmelCase = 2    )      ->float:



	"""simple docstring"""







	return round((float(UpperCAmelCase    ) * 2.25 + 32 + 459.67)       ,			UpperCAmelCase    )


if __name__ == "__main__":
				import doctest

				doctest.testmod()








'''simple docstring'''


_lowerCamelCase				:	List[str]				    =       [[0, 1, 1], [0, 0, 1], [1, 0, 0]]



class 							__UpperCAmelCase  :







		'''simple docstring'''







		def __init__(self						:      List[Any]      ,      _lowerCAmelCase						:      List[Any]      ):
			A							  =      name
			A							  =      []
			A							  =      []







		def        A     (self						:      Dict      ,      _lowerCAmelCase						:      str      ):
			self.inbound.append(_lowerCAmelCase      )







		def        A     (self						:      Dict      ,      _lowerCAmelCase						:      Any      ):
			self.outbound.append(_lowerCAmelCase      )







		def __repr__(self						:      Tuple      ):
			return F"""<node={self.name} inbound={self.inbound} outbound={self.outbound}>"""






def    __a (     UpperCAmelCase       ,			UpperCAmelCase=3       ,			UpperCAmelCase=0.85    )      ->Tuple:



	"""simple docstring"""







	A							  =      {}
	for node in nodes:
		A							  =      1

	A							  =      {}
	for node in nodes:
		A							  =      len(node.outbound    )

	for i in range(UpperCAmelCase    ):
		print(f"""======= Iteration {i + 1} ======="""    )
		for _, node in enumerate(UpperCAmelCase    ):
			A							  =      (1 - d) + d * sum(
			    ranks[ib] / outbounds[ib] for ib in node.inbound    )
		print(UpperCAmelCase    )




def    __a (     )      ->Any:



	"""simple docstring"""







	A							  =      list(input("""Enter Names of the Nodes: """    ).split()    )

	A							  =      [Node(UpperCAmelCase    ) for name in names]

	for ri, row in enumerate(UpperCAmelCase    ):
		for ci, col in enumerate(UpperCAmelCase    ):
			if col == 1:
				nodes[ci].add_inbound(names[ri]    )
				nodes[ri].add_outbound(names[ci]    )

	print("""======= Nodes ======="""    )
	for node in nodes:
		print(UpperCAmelCase    )

	page_rank(UpperCAmelCase    )


if __name__ == "__main__":
				main()

