






'''simple docstring'''

from math import pow



def 							snake_case					(     a_							: int    ,   a_							: int    ,   a_							: int    ,   a_							: int    ,   a_							: int    ,   )       ->				tuple[int, int]:





      """simple docstring"""

      if current_sum == needed_sum:
            # If the sum of the powers is equal to needed_sum, then we have a solution.
            solutions_count += 1
            return current_sum, solutions_count

      UpperCamelCase_				:   int					    =							int(pow(a_    ,   a_	)	)
      if current_sum + i_to_n <= needed_sum:
            # If the sum of the powers is less than needed_sum, then continue adding powers.
            current_sum += i_to_n
            UpperCamelCase_				:   Optional[int]					    =							backtrack(
                a_    ,   a_    ,   current_number + 1    ,   a_    ,   a_	)
            current_sum -= i_to_n
      if i_to_n < needed_sum:
            # If the power of i is less than needed_sum, then try with the next power.
            UpperCamelCase_				:   Union[str, Any]					    =							backtrack(
                a_    ,   a_    ,   current_number + 1    ,   a_    ,   a_	)
      return current_sum, solutions_count



def 							snake_case					(     a_							: int    ,   a_							: int	)       ->				int:





      """simple docstring"""

      if not (1 <= needed_sum <= 1_000 and 2 <= power <= 10):
            raise ValueError(
                """Invalid input\n"""
                """needed_sum must be between 1 and 1000, power between 2 and 10."""	)

      return backtrack(a_    ,   a_    ,   1    ,   0    ,   0	)[1]  # Return the solutions_count


if __name__ == "__main__":
    import doctest

    doctest.testmod()














'''simple docstring'''

from __future__ import annotations

import os
from typing import Any

import requests

UpperCamelCase							="https://api.github.com"

# https://docs.github.com/en/free-pro-team@latest/rest/reference/users#get-the-authenticated-user
UpperCamelCase							=BASE_URL + "/user"

# https://github.com/settings/tokens
UpperCamelCase							=os.environ.get("USER_TOKEN", "")



def 							snake_case					(     a_							: str	)       ->				dict[Any, Any]:





      """simple docstring"""

      UpperCamelCase_				:   Tuple					    =							{
          """Authorization""": f"token {auth_token}",
          """Accept""": """application/vnd.github.v3+json""",
      }
      return requests.get(a_    ,   headers=a_	).json()


if __name__ == "__main__":  # pragma: no cover
      if USER_TOKEN:
            for key, value in fetch_github_info(USER_TOKEN).items():
                  print(f"{key}: {value}")
      else:
            raise ValueError("'USER_TOKEN' field cannot be empty.")






