Composite Sequence

아직 제출이 없습니다시간 제한1초메모리 제한256 MB

문제

A sequence SS of positive integers is a composite sequence if and only if there is a non-empty subsequence TT of SS such that the sum of all integers in TT is a composite number.

Given SS, your task is to check whether SS is a composite sequence.

Note that 11 is not a composite number.

Recall that TT is a subsequence of SS if and only if we can obtain TT by removing some elements of SS (possibly none or all).

입력

The first line contains a single integer nn (1n1051 \le n \le 10^5), the size of SS.

The second line contains nn integers S_1,S_2,,S_nS\_1, S\_2, \ldots, S\_n: the elements of SS (1S_i1091 \le S\_i \le 10^9).

출력

If SS is a composite sequence, output "Yes". Otherwise, output "No".