
import json
import sys


def 						UpperCAmelCase			(	a_		,   a_						)		->	Dict:







				"""simple docstring"""



				with open(lowerCAmelCase__		,   encoding="utf-8"						) as f:
								__A   			= json.load(lowerCAmelCase__						)

				__A   			= ['''<details>''', '''<summary>Show updated benchmarks!</summary>''', ''' ''']

				for benchmark_name in sorted(lowerCAmelCase__						):
								__A   			= results[benchmark_name]

								__A   			= benchmark_name.split("/"						)[-1]
								output_md.append(F'''### Benchmark: {benchmark_file_name}'''						)

								__A   			= '''| metric |'''
								__A   			= '''|--------|'''
								__A   			= '''| new / old (diff) |'''
								for metric_name in sorted(lowerCAmelCase__						):
												__A   			= benchmark_res[metric_name]
												__A   			= metric_vals['''new''']
												__A   			= metric_vals.get("old"		,   lowerCAmelCase__						)
												__A   			= metric_vals.get("diff"		,   lowerCAmelCase__						)

												__A   			= F''' {new_val:f}''' if isinstance(lowerCAmelCase__		,   (int, float)						) else '''None'''

												if old_val is not None:
																val_str += F''' / {old_val:f}''' if isinstance(lowerCAmelCase__		,   (int, float)						) else "None"
												if dif_val is not None:
																val_str += F''' ({dif_val:f})''' if isinstance(lowerCAmelCase__		,   (int, float)						) else "None"

												title += " " + metric_name + " |"
												lines += "---|"
												value += val_str + " |"

								output_md += [title, lines, value, " "]

				output_md.append("</details>"						)

				with open(lowerCAmelCase__		,   "w"		,   encoding="utf-8"						) as f:
								f.writelines("\n".join(lowerCAmelCase__						)						)


if __name__ == "__main__":
					SCREAMING_SNAKE_CASE							:int							 =				sys.argv[1]
					SCREAMING_SNAKE_CASE							:List[str]							 =				sys.argv[2]

					format_json_to_md(input_json_file, output_md_file)




'''simple docstring'''
def 					a__       (					lowerCAmelCase__						)    ->	int:
    UpperCAmelCase__			:		Tuple													=				0
    while num > 0:
        digit_sum += num % 10
        num //= 10
    return digit_sum





def 					a__       (					lowerCAmelCase__ = 1_00						)    ->	int:
    UpperCAmelCase__			:		Dict													=				1
    UpperCAmelCase__			:		str													=				2

    for i in range(2  ,					max_n + 1						):
        UpperCAmelCase__			:		Tuple													=				pre_numerator
        UpperCAmelCase__			:		Tuple													=				2 * i // 3 if i % 3 == 0 else 1
        UpperCAmelCase__			:		str													=				cur_numerator
        UpperCAmelCase__			:		List[str]													=				e_cont * pre_numerator + temp

    return sum_digits(lowerCAmelCase__						)


if __name__ == "__main__":
  print(F"""{solution() = }""")
