#include using namespace std; int main(){ int n; cin>>n; int a[n]; vectorcolor; for(int i=0;i>a[i]; if(i==0)color.push_back(a[i]); if(i && a[i]!=a[i-1])color.push_back(a[i]); } int x[n]={}; int b=0; for(int i=0;i