


from __future__ import annotations

import unittest

from transformers import is_tf_available
from transformers.testing_utils import require_sentencepiece, require_tf, require_tokenizers, slow


if is_tf_available():
   import tensorflow as tf

   from transformers import AutoTokenizer, TFAutoModelForSeqaSeqLM
@require_tf
@require_sentencepiece
@require_tokenizers
class 			SCREAMING_SNAKE_CASE__  (    unittest.TestCase      ):
      @slow
      def 	SCREAMING_SNAKE_CASE							(	self    :	Any					)		->      str:
             a_ :		Tuple							=  TFAutoModelForSeqaSeqLM.from_pretrained('google/mt5-small'					)
             a_ :		int							=  AutoTokenizer.from_pretrained('google/mt5-small'					)

             a_ :		Dict							=  tokenizer('Hello there'					,							return_tensors='tf'					).input_ids
             a_ :		str							=  tokenizer('Hi I am'					,							return_tensors='tf'					).input_ids

             a_ :		int							=  model(SCREAMING_SNAKE_CASE__					,							labels=SCREAMING_SNAKE_CASE__					).loss
             a_ :		List[str]							=  -tf.math.reduce_mean(SCREAMING_SNAKE_CASE__					).numpy()

             a_ :		Optional[int]							=  -21.228168
             self.assertTrue(abs(mtf_score - EXPECTED_SCORE					) < 2E-4					)






def 	SCREAMING_SNAKE_CASE_						(      __A			:      int    )     ->		int:

       """simple docstring"""

       if n == 1 or not isinstance(__A  ,   __A    ):
              return 0
       elif n == 2:
              return 1
       else:
              a_ :		int							=  [0, 1]
              for i in range(2  ,   n + 1    ):
                     sequence.append(sequence[i - 1] + sequence[i - 2]    )

              return sequence[n]







def 	SCREAMING_SNAKE_CASE_						(      __A			:      int    )     ->		int:

       """simple docstring"""

       a_ :		Any							=  0
       a_ :		Optional[Any]							=  2

       while digits < n:
              index += 1
              a_ :		List[Any]							=  len(str(fibonacci(__A    )    )    )

       return index







def 	SCREAMING_SNAKE_CASE_						(      __A			:      int = 10_00    )     ->		int:

       """simple docstring"""

       return fibonacci_digits_index(__A    )


if __name__ == "__main__":
   print(solution(int(str(input()).strip())))


