


'''simple docstring'''




import argparse
import json

from tqdm import tqdm

def 			__UpperCamelCase    (    )    ->      Any:




	"""simple docstring"""





	lowerCAmelCase					:    Union[str, Any]      							= argparse.ArgumentParser()

	# Required parameters
	parser.add_argument(
	    '--src_path'					,   type=_A					,   default='biencoder-nq-dev.json'					,   help='Path to raw DPR training data'					,   )
	parser.add_argument(
	    '--evaluation_set'					,   type=_A					,   help='where to store parsed evaluation_set file'					,   )
	parser.add_argument(
	    '--gold_data_path'					,   type=_A					,   help='where to store parsed gold_data_path file'					,   )
	lowerCAmelCase					:    str      							= parser.parse_args()

	with open(args.src_path					,   'r'				) as src_file, open(args.evaluation_set					,   'w'				) as eval_file, open(
	    args.gold_data_path					,   'w'				) as gold_file:
		lowerCAmelCase					:    Any      							= json.load(_A				)
		for dpr_record in tqdm(_A				):
			lowerCAmelCase					:    Dict      							= dpr_record['question']
			lowerCAmelCase					:    Tuple      							= [context['title'] for context in dpr_record['positive_ctxs']]
			eval_file.write(question + '\n'				)
			gold_file.write('\t'.join(_A				) + '\n'				)


if __name__ == "__main__":
				main()




'''simple docstring'''




_lowerCAmelCase  :		List[str]		     =	{str(digit): digit**5 for digit in range(10)}

def 			__UpperCamelCase    (    _A    :				int				)    ->      int:




	"""simple docstring"""





	return sum(DIGITS_FIFTH_POWER[digit] for digit in str(_A				)				)

def 			__UpperCamelCase    (    )    ->      int:




	"""simple docstring"""





	return sum(
	    number
	    for number in range(10_00					,   1_00_00_00				)
	    if number == digits_fifth_powers_sum(_A				)				)


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