#include #define INF 1e9 #define llINF 1e18 #define MOD 1000000007 #define pb push_back #define mp make_pair #define F first #define S second #define ll long long #define ull unsigned long long #define vi vector #define vvi vector #define BITLE(n) (1LL<<(n)) #define BITCNT(n) (__builtin_popcountll(n)) #define SUBS(s,f,t) (s.substr(f-1,t-f+1)) #define ALL(a) (a).begin(),(a).end() using namespace std; struct Grid{ll x,y,t;}; struct Edge{ll to,cost;}; struct Graph{vector>E;int V; const ll Inf = llINF;const int MAX_V=201010;vectord; Graph(int n):E(n){d.resize(MAX_V);E.resize(n);V=n;} void init(){for(int i=0;i ho[j][i])wincn+=1; else if(hog[i] == ho[j][i])draw+=1; else lose+=1; } if(wincn>lose)win+=1; sum+=1; } return; } for(int i=0;i>n; A.resize(n); B.resize(n); for(auto &a:A)cin>>a; for(auto &b:B)cin>>b; vi hog; dfs2(0,0,hog); dfs(0,0,hog); //cout<