#include using namespace std; int main(){ int n; cin>>n; int a[n]; for(int i=0;i>a[i]; } sort(a,a+n); int def=a[1]-a[0]; if(def==0){ cout<<"NO"<