


UpperCAmelCase_				:			Optional[int]   =	[0, 2, 4, 6, 8]
UpperCAmelCase_				:			List[Any]   =	[1, 3, 5, 7, 9]







def 	SCREAMING_SNAKE_CASE_						(      __A			:      int  ,   __A			:      int  ,   __A			:      list[int]  ,   __A			:      int    )     ->		int:

       """simple docstring"""

       if remaining_length == 0:
              if digits[0] == 0 or digits[-1] == 0:
                     return 0

              for i in range(length // 2 - 1  ,   -1  ,   -1    ):
                     remainder += digits[i] + digits[length - i - 1]

                     if remainder % 2 == 0:
                            return 0

                     remainder //= 10

              return 1

       if remaining_length == 1:
              if remainder % 2 == 0:
                     return 0

              a_ :		Union[str, Any]							=  0
              for digit in range(10    ):
                     a_ :		Tuple							=  digit
                     result += reversible_numbers(
                         0  ,   (remainder + 2 * digit) // 10  ,   __A  ,   __A    )
              return result

       a_ :		Union[str, Any]							=  0
       for digita in range(10    ):
              a_ :		Union[str, Any]							=  digita

              if (remainder + digita) % 2 == 0:
                     a_ :		Tuple							=  ODD_DIGITS
              else:
                     a_ :		Dict							=  EVEN_DIGITS

              for digita in other_parity_digits:
                     a_ :		Tuple							=  digita
                     result += reversible_numbers(
                         remaining_length - 2  ,   (remainder + digita + digita) // 10  ,   __A  ,   __A  ,   )
       return result







def 	SCREAMING_SNAKE_CASE_						(      __A			:      int = 9    )     ->		int:

       """simple docstring"""

       a_ :		int							=  0
       for length in range(1  ,   max_power + 1    ):
              result += reversible_numbers(__A  ,   0  ,   [0] * length  ,   __A    )
       return result


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






import json
import sys







def 	SCREAMING_SNAKE_CASE_						(      __A			:      Optional[Any]  ,   __A			:      List[str]    )     ->		Tuple:

       """simple docstring"""

       with open(__A  ,   encoding='utf-8'    ) as f:
              a_ :		Union[str, Any]							=  json.load(__A    )

       a_ :		Any							=  ['<details>', '<summary>Show updated benchmarks!</summary>', ' ']

       for benchmark_name in sorted(__A    ):
              a_ :		List[str]							=  results[benchmark_name]

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

              a_ :		Any							=  '| metric |'
              a_ :		Optional[Any]							=  '|--------|'
              a_ :		int							=  '| new / old (diff) |'
              for metric_name in sorted(__A    ):
                     a_ :		List[Any]							=  benchmark_res[metric_name]
                     a_ :		int							=  metric_vals['new']
                     a_ :		Union[str, Any]							=  metric_vals.get('old'  ,   __A    )
                     a_ :		Optional[int]							=  metric_vals.get('diff'  ,   __A    )

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

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

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

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

       output_md.append('</details>'    )

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


if __name__ == "__main__":
   UpperCAmelCase_				:			int   =	sys.argv[1]
   UpperCAmelCase_				:			Any   =	sys.argv[2]

   format_json_to_md(input_json_file, output_md_file)


