Universal Cup Judging System

Universal Cup

시간 제한: 0.5 s 메모리 제한: 1024 MB 총점: 100 해킹 가능 ✓
통계

The evil followers of prime numbers have cursed KSA students so they cannot speak some of the ten digits.

You must create a non-prime number using the remaining $N$ digits to save KSA. Digits can be used repeatedly, and the resulting number must be a non-negative integer less than or equal to $10^{12}$.

Input

The first line contains an integer $N$.

The second line contains $N$ available space-separated digits $d_1, d_2, \cdots, d_N$.

Output

On the first line, print YES if a non-prime number satisfying the conditions exists and NO otherwise.

If such a number exists, print it on the second line. You should not print unnecessary leading zeros.

If there are multiple solutions, print any of them.

Constraints

  • $1 \leq N \leq 10$
  • $0 \le d_1 < d_2 < \cdots < d_N \le 9$

Scoring

No. Points Constraints
$1$ $15$ At least one of $0$, $2$, $4$, $6$, and $8$ is available
$2$ $85$ No additional constraints

Examples

Input 1

4
2 3 6 7

Output 1

YES
672

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.