#t40. 素数判断(加强版)

素数判断(加强版)

Prime Check (Hard Version)

Problem Description

Given a positive integer nn, determine whether it is a prime number. If it is prime, print 11; otherwise print 00. (There may be very large primes.)

(Terminology: a prime number is a natural number greater than 11 that has no divisors other than 11 and itself.)

Input Format

The input consists of one line containing a positive integer nn.

Output Format

Print one line containing a single integer, 11 or 00, indicating whether nn is prime.

Sample Input

7

Sample Output

1

Constraints

1<n<10101 < n < 10^{10}