#include #include #include long long int gcd(long long int a, long long int b) { return a?gcd(b%a,a):b; } std::vector V; int main() { int a; scanf("%d",&a); int count = 0; for(int i=1;i<=a;i++) { long long int b; scanf("%lld",&b); if(b==0) count++; else V.push_back(b); } std::sort(V.begin(),V.end()); if(V.size()<=1) printf("Yes"); else { int control1 = 0, control2 = 0; for(int i=1;i