
'''simple docstring'''
import os
import unittest

from transformers import FunnelTokenizer, FunnelTokenizerFast
from transformers.models.funnel.tokenization_funnel import VOCAB_FILES_NAMES
from transformers.testing_utils import require_tokenizers

from ...test_tokenization_common import TokenizerTesterMixin







@require_tokenizers
class  __A				( _SCREAMING_SNAKE_CASE    ,						unittest.TestCase			):
 lowerCamelCase				       =FunnelTokenizer
 lowerCamelCase				       =FunnelTokenizerFast
 lowerCamelCase				       =True
 lowerCamelCase				       =True
 def 		lowercase_(   self			:    Any       ):



   """simple docstring"""





   super().setUp()

   __A		:     Union[str, Any]												=		[
       """<unk>""",
       """<cls>""",
       """<sep>""",
       """want""",
       """##want""",
       """##ed""",
       """wa""",
       """un""",
       """runn""",
       """##ing""",
       """,""",
       """low""",
       """lowest""",
   ]
   __A		:     List[str]												=		os.path.join(self.tmpdirname				,   VOCAB_FILES_NAMES["""vocab_file"""]       )
   with open(self.vocab_file				,   """w"""				,   encoding="""utf-8"""       ) as vocab_writer:
     vocab_writer.write("""""".join([x + """\n""" for x in vocab_tokens]       )       )
 def 		lowercase_(   self			:    int				,   **lowerCamelCase			:    str       ):



   """simple docstring"""





   return FunnelTokenizer.from_pretrained(self.tmpdirname				,   **lowerCamelCase       )
 def 		lowercase_(   self			:    Optional[int]				,   **lowerCamelCase			:    int       ):



   """simple docstring"""





   return FunnelTokenizerFast.from_pretrained(self.tmpdirname				,   **lowerCamelCase       )
 def 		lowercase_(   self			:    Optional[Any]				,   lowerCamelCase			:    str       ):



   """simple docstring"""





   __A		:     Tuple												=		"""UNwant\u00E9d,running"""
   __A		:     Dict												=		"""unwanted, running"""
   return input_text, output_text
 def 		lowercase_(   self			:    Union[str, Any]       ):



   """simple docstring"""





   __A		:     Optional[Any]												=		self.tokenizer_class(self.vocab_file       )

   __A		:     List[Any]												=		tokenizer.tokenize("""UNwant\u00E9d,running"""       )
   self.assertListEqual(lowerCamelCase				,   ["""un""", """##want""", """##ed""", """,""", """runn""", """##ing"""]       )
   self.assertListEqual(tokenizer.convert_tokens_to_ids(lowerCamelCase       )				,   [7, 4, 5, 10, 8, 9]       )






 def 		lowercase_(   self			:    Dict       ):



   """simple docstring"""





   __A		:     Optional[Any]												=		self.get_tokenizers(do_lower_case=lowerCamelCase       )
   for tokenizer in tokenizers:
     __A		:     str												=		tokenizer("""UNwant\u00E9d,running"""       )
     __A		:     Tuple												=		len(inputs["""input_ids"""]       ) - 1
     self.assertListEqual(inputs["""token_type_ids"""]				,   [2] + [0] * sentence_len       )

     __A		:     Tuple												=		tokenizer("""UNwant\u00E9d,running"""				,   """UNwant\u00E9d,running"""       )
     self.assertListEqual(inputs["""token_type_ids"""]				,   [2] + [0] * sentence_len + [1] * sentence_len       )





'''simple docstring'''
def        A_     (						__SCREAMING_SNAKE_CASE						:  int )				->       int:





  """simple docstring"""

  __A		:     Optional[int]												=		1
  for i in range(1			,     num + 1 ):
    fact *= i
  return fact







def        A_     (						__SCREAMING_SNAKE_CASE						:  int )				->       int:





  """simple docstring"""

  __A		:     List[str]												=		0
  while number > 0:
    __A		:     Union[str, Any]												=		number % 10
    sum_of_digits += last_digit
    __A		:     int												=		number // 10  # Removing the last_digit from the given number
  return sum_of_digits







def        A_     (						__SCREAMING_SNAKE_CASE						:  int = 100 )				->       int:





  """simple docstring"""

  __A		:     Union[str, Any]												=		factorial(__SCREAMING_SNAKE_CASE )
  __A		:     Any												=		split_and_add(__SCREAMING_SNAKE_CASE )
  return result


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



