#include using namespace std; typedef long long ll; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int n; cin >> n; vector s(n),t(n); bool ss=0,tt=0; for(int i=0;i> s[i]; if(s[i]==2)ss=1; } for(int i=0;i> t[i]; if(t[i]==2)tt=1; } int res=0; for(int i=0;i