"""simple docstring"""







def   __UpperCAmelCase    (   UpperCAmelCase_   :    int  )							->      int:

	'''simple docstring'''





	return 1 if digit in (0, 1) else (digit * factorial(digit - 1  ))
def   __UpperCAmelCase    (   UpperCAmelCase_   :    int  )							->      bool:

	'''simple docstring'''





	__snake_case      :							Dict						=			0
	__snake_case      :							Union[str, Any]						=			number
	while duplicate > 0:
		__snake_case      :							str						=			divmod(UpperCAmelCase_      ,							10  )
		fact_sum += factorial(UpperCAmelCase_  )
	return fact_sum == number


if __name__ == "__main__":
	print("Program to check whether a number is a Krisnamurthy Number or not.")
	_a					:					int=			int(input("Enter number: ").strip())
	print(
	    f'''{number} is {'' if krishnamurthy(number) else 'not '}a Krishnamurthy Number.'''
	)






"""simple docstring"""







from __future__ import annotations

import os
from typing import Any

import requests

_a					:					int=			"https://api.github.com"

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

# https://github.com/settings/tokens
_a					:					Union[str, Any]=			os.environ.get("USER_TOKEN", "")
def   __UpperCAmelCase    (   UpperCAmelCase_   :    str  )							->      dict[Any, Any]:

	'''simple docstring'''





	__snake_case      :							Tuple						=			{
	    'Authorization': F"token {auth_token}",
	    'Accept': 'application/vnd.github.v3+json',
	}
	return requests.get(UpperCAmelCase_      ,							headers=UpperCAmelCase_  ).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.")





