#include #include using namespace std; int main() { // your code goes here int n;cin>>n; int *a=new int[n]; for(int i=0;i>a[i]; sort(a,a+n); int d=a[1]-a[0]; if(d==0){cout<<"NO"<