CF798C Mike and gcd problem

Description

Mike has a sequence $ A=[a_{1},a_{2},...,a_{n}] $ of length $ n $ . He considers the sequence $ B=[b_{1},b_{2},...,b_{n}] $ beautiful if the $ gcd $ of all its elements is bigger than $ 1 $ , i.e. ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF798C/11fc4821110b970a70c2486c7b1391945362cd14.png). Mike wants to change his sequence in order to make it beautiful. In one move he can choose an index $ i $ ( $ 1

Input Format

The first line contains a single integer $ n $ ( $ 2

Output Format

Output on the first line "YES" (without quotes) if it is possible to make sequence $ A $ beautiful by performing operations described above, and "NO" (without quotes) otherwise. If the answer was "YES", output the minimal number of moves needed to make sequence $ A $ beautiful.

Explanation/Hint

In the first example you can simply make one move to obtain sequence $ [0,2] $ with ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF798C/6e6135886c5112f884827e3877151ef3f67508e1.png). In the second example the $ gcd $ of the sequence is already greater than $ 1 $ .