

"""simple docstring"""






from __future__ import annotations

__lowerCamelCase										=		[True] * 1_00_00_01
__lowerCamelCase										=		2
while i * i <= 1_00_00_00:
 if seive[i]:
  for j in range(i * i, 1_00_00_01, i):
   __lowerCamelCase										=		False
 i += 1





def 	lowercase      (   __UpperCamelCase						) ->      Optional[int]:
 return seive[n]





def 	lowercase      (   __UpperCamelCase						) ->      List[str]:
 return any(digit in '''02468''' for digit in str(_lowerCamelCase						)						)





def 	lowercase      (   __UpperCamelCase = 1000000						) ->      Optional[Any]:
 __magic_name__     =      [2]  # result already includes the number 2.
 for num in range(3      ,   limit + 1      ,   2						):
  if is_prime(_lowerCamelCase						) and not contains_an_even_digit(_lowerCamelCase						):
   __magic_name__     =      str(_lowerCamelCase						)
   __magic_name__     =      [int(str_num[j:] + str_num[:j]						) for j in range(len(_lowerCamelCase						)						)]
   if all(is_prime(_lowerCamelCase						) for i in list_nums						):
    result.append(_lowerCamelCase						)
 return result





def 	lowercase      (   ) ->      Union[str, Any]:
 return len(find_circular_primes()						)


if __name__ == "__main__":
 print(f"""{len(find_circular_primes()) = }""")




"""simple docstring"""






def 	lowercase      (   ) ->      int:
 return 1





def 	lowercase      (   __UpperCamelCase						) ->      int:
 return 0 if x < 0 else two_pence(x - 2						) + one_pence()





def 	lowercase      (   __UpperCamelCase						) ->      int:
 return 0 if x < 0 else five_pence(x - 5						) + two_pence(__UpperCamelCase						)





def 	lowercase      (   __UpperCamelCase						) ->      int:
 return 0 if x < 0 else ten_pence(x - 10						) + five_pence(__UpperCamelCase						)





def 	lowercase      (   __UpperCamelCase						) ->      int:
 return 0 if x < 0 else twenty_pence(x - 20						) + ten_pence(__UpperCamelCase						)





def 	lowercase      (   __UpperCamelCase						) ->      int:
 return 0 if x < 0 else fifty_pence(x - 50						) + twenty_pence(__UpperCamelCase						)





def 	lowercase      (   __UpperCamelCase						) ->      int:
 return 0 if x < 0 else one_pound(x - 100						) + fifty_pence(__UpperCamelCase						)





def 	lowercase      (   __UpperCamelCase						) ->      int:
 return 0 if x < 0 else two_pound(x - 200						) + one_pound(__UpperCamelCase						)





def 	lowercase      (   __UpperCamelCase = 200						) ->      int:
 return two_pound(__UpperCamelCase						)


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

