#include "bits/stdc++.h" #define MAXN 100009 #define INF 1000000007 #define mp(x,y) make_pair(x,y) #define all(v) v.begin(),v.end() #define pb(x) push_back(x) #define wr cout<<"----------------"<ss=++c; for(int i=1;i<=n;i++) a[i]=pm[a[i]]; for(int i=1;i<=n;i++) b[i]=pm[b[i]]; return dfs(1,0); } void travel(int nd,int pr){ sub[nd]=1; for(int i=0;i>1; if(solve(mid)=k) printf("%d\n",st); else printf("%d\n",en); return 0; }