Concurrent with Columbus' colonialism contract, Cambodia's consumerism consultant commissions Columbus with contemplating compelling conspiracies contingent with a certain celebrated Conjecture.
Given candidate cardinals
, Columbus is compulsed to conclude whether circular composition of
where
causes convergence to 1.
Can you capitalize on the compute capacity of Columbus' computer's CPU cores to complete this ceaseless chore?
Input Specification
The first line contains one integer (
).
The second line contains
space separated integers
(
).
Output Specification
Print lines,
YES
if the circular composition of converges to 1,
NO
if it doesn't.
Sample Input
2
2 3
Sample Output
YES
YES
Comments