#include #include #include #include #include using namespace std; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int a,b,n; //int arr[n]; //int arrr[n]; vector myvector; vector myvectorr; scanf("%d",&n); for(int i=0; i() ) == myvector.end() ) || (adjacent_find( myvectorr.begin(), myvectorr.end(),not_equal_to() ) == myvectorr.end() )) { cout <<"YES"<< endl; } else{ cout<<"NO"<