#include #include #define ll long long int #define vec vector #define mat vector> #define pll pair #define count __builtin_popcountll using namespace std; using namespace atcoder; //using mint = modint1000000007; const ll mod=1000000007;//998244353; const ll inf=1000000000000000000; ll dx4[4]={1,0,-1,0}; ll dy4[4]={0,-1,0,1}; ll dx8[8]={1,0,-1,1,-1,1,0,-1}; ll dy8[8]={1,1,1,0,0,-1,-1,-1}; int main(){ cout << fixed << setprecision(15); ll n,k,p; cin >> n >> k >> p; vec a(n),b(n); for(ll i=0;i> a[i]; for(ll i=0;i> b[i]; for(ll i=0;i1){ ll ret=0; for(ll i=0;i=k)r=h; else l=h; h=(r+l)/2; // cout << r << " " << l << endl; } cout << r << endl; return 0; }