





'''simple docstring'''

from __future__ import annotations

import math




def    _a    (							lowerCAmelCase_	):





      """simple docstring"""



      if 1 < number < 4:
            # 2 and 3 are primes
            return True
      elif number < 2 or number % 2 == 0 or number % 3 == 0:
            # Negatives, 0, 1, all even numbers, all multiples of 3 are not primes
            return False

      # All primes number are in format of 6k +/- 1
      for i in range(5			,      int(math.sqrt(lowerCAmelCase_	) + 1	)			,      6	):
            if number % i == 0 or number % (i + 2) == 0:
                  return False
      return True




def    _a    (							lowerCAmelCase_	):





      """simple docstring"""



      _snake_case		:	Dict					     =     str(lowerCAmelCase_	)
      _snake_case		:	Dict					     =     [n]
      for i in range(1			,      len(lowerCAmelCase_	)	):
            list_nums.append(int(str_num[i:]	)	)
            list_nums.append(int(str_num[:-i]	)	)
      return list_nums




def    _a    (							lowerCAmelCase_	):





      """simple docstring"""



      if len(str(lowerCAmelCase_	)	) > 3:
            if not is_prime(int(str(lowerCAmelCase_	)[-3:]	)	) or not is_prime(int(str(lowerCAmelCase_	)[:3]	)	):
                  return False
      return True




def    _a    (							lowerCAmelCase_ = 11	):





      """simple docstring"""



      _snake_case		:	list[int]					     =     []
      _snake_case		:	str					     =     13
      while len(lowerCAmelCase_	) != count:
            if validate(lowerCAmelCase_	):
                  _snake_case		:	Dict					     =     list_truncated_nums(lowerCAmelCase_	)
                  if all(is_prime(lowerCAmelCase_	) for i in list_nums	):
                        list_truncated_primes.append(lowerCAmelCase_	)
            num += 2
      return list_truncated_primes




def    _a    (							):





      """simple docstring"""



      return sum(compute_truncated_primes(11	)	)


if __name__ == "__main__":
   print(F"""{sum(compute_truncated_primes(1_1)) = }""")









'''simple docstring'''

from collections.abc import Generator




def    _a    (							):





      """simple docstring"""



      _snake_case     ,							_snake_case		:	Union[str, Any]					     =     0, 1
      while True:
            _snake_case     ,							_snake_case		:	List[str]					     =     b, a + b
            yield b




def    _a    (							lowerCAmelCase_ = 1_000	):





      """simple docstring"""



      _snake_case		:	List[str]					     =     1
      _snake_case		:	Dict					     =     fibonacci_generator()
      while len(str(next(lowerCAmelCase_	)	)	) < n:
            answer += 1
      return answer + 1


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


