#include using namespace std; int main(){ int n; int flag,k=0; cin >> n; vector types(n); for(int types_i = 0; types_i < n; types_i++){ cin >> types[types_i]; } flag=types[0]; // your code goes here for ( int i=0;i