#include #include #include #include #include #include #include #include #include #include using namespace std; struct aaa{aaa(){cin.tie(nullptr); ios::sync_with_stdio(false); cout<ostream &operator<<(ostream &o,const pair&p){o<<"("<ostream &operator<<(ostream &o,const vector&v){o<<"{";for(int i=0;i<(int)v.size();i++)o<<(i>0?", ":"")<; int main() { int n; cin >> n; vector a(n,0); for (int i=0; i> a[i]; vector b(n,0); for (int i=0; i> b[i]; vector

len; len.emplace_back(a[0]==b[0], 0); for (int i=0; i