"""simple docstring"""



from collections import Counter

import numpy as np
from sklearn import datasets
from sklearn.model_selection import train_test_split

__lowercase		:		int														=							datasets.load_iris()

__lowercase		:		Union[str, Any]														=							np.array(data["data"])
__lowercase		:		Any														=							np.array(data["target"])
__lowercase		:		Tuple														=							data["target_names"]

__lowercase							,__lowercase							,__lowercase							,__lowercase		:		Union[str, Any]														=							train_test_split(X, y)





def    SCREAMING_SNAKE_CASE       (     snake_case,      snake_case):
     return np.linalg.norm(np.array(snake_case) - np.array(snake_case))





def    SCREAMING_SNAKE_CASE       (     snake_case,      snake_case,      snake_case,      snake_case,      snake_case=5):
     __snake_case				=							zip(snake_case,      snake_case)
     # List of distances of all points from the point to be classified
     __snake_case				=							[]
     for data_point in data:
          __snake_case				=							euclidean_distance(data_point[0],      snake_case)
          distances.append((distance, data_point[1]))
     # Choosing 'k' points with the least distances.
     __snake_case				=							[i[1] for i in sorted(snake_case)[:k]]
     # Most commonly occurring class among them
     # is the class into which the point is classified
     __snake_case				=							Counter(snake_case).most_common(1)[0][0]
     return classes[result]


if __name__ == "__main__":
       print(classifier(X_train, y_train, classes, [4.4, 3.1, 1.3, 1.4]))
"""simple docstring"""



def    SCREAMING_SNAKE_CASE       (     snake_case):
     return 1 if digit in (0, 1) else (digit * factorial(digit - 1))





def    SCREAMING_SNAKE_CASE       (     snake_case):
     __snake_case				=							0
     __snake_case				=							number
     while duplicate > 0:
          __snake_case		,	__snake_case				=							divmod(snake_case,      10)
          fact_sum += factorial(snake_case)
     return fact_sum == number


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