






from __future__ import annotations

import collections
import pprint
from pathlib import Path







def 		SCREAMING_SNAKE_CASE							( __lowerCAmelCase      )			->     str:
     return "".join(sorted(__lowerCAmelCase      )      )







def 		SCREAMING_SNAKE_CASE							( __lowerCAmelCase      )			->     list[str]:
     return word_by_signature[signature(__lowerCAmelCase      )]


lowerCamelCase     :							str    =Path(__file__).parent.joinpath('''words.txt''').read_text(encoding='''utf-8''')
lowerCamelCase     :							List[Any]    =sorted({word.strip().lower() for word in data.splitlines()})

lowerCamelCase     :							int    =collections.defaultdict(list)
for word in word_list:
 word_by_signature[signature(word)].append(word)

if __name__ == "__main__":
 lowerCamelCase     :							int    ={word: anagram(word) for word in word_list if len(anagram(word)) > 1}

 with open('''anagrams.txt''', '''w''') as file:
  file.write('''all_anagrams = \n ''')
  file.write(pprint.pformat(all_anagrams))







def 		SCREAMING_SNAKE_CASE							( __lowerCAmelCase      )			->     int:
     UpperCamelCase__      :       int	    =  1
     for i in range(1 ,   num + 1      ):
          fact *= i
     return fact







def 		SCREAMING_SNAKE_CASE							( __lowerCAmelCase      )			->     int:
     UpperCamelCase__      :       List[Any]	    =  0
     while number > 0:
          UpperCamelCase__      :       List[Any]	    =  number % 10
          sum_of_digits += last_digit
          UpperCamelCase__      :       int	    =  number // 10  # Removing the last_digit from the given number
     return sum_of_digits







def 		SCREAMING_SNAKE_CASE							( __lowerCAmelCase = 100      )			->     int:
     UpperCamelCase__      :       Optional[Any]	    =  factorial(__lowerCAmelCase      )
     UpperCamelCase__      :       Optional[int]	    =  split_and_add(__lowerCAmelCase      )
     return result


if __name__ == "__main__":
 print(solution(int(input('''Enter the Number: ''').strip())))