#include #include #include #include #include #include #include #include #include #include #include #include #define vll vector #define vvvl vector #define vvl vector> #define VV(a, b, c, d) vector>(a, vector(b, c)) #define VVV(a, b, c, d) vector(a, vvl(b, vll (c, d))); #define re(c, b) for(ll c=0;c> n >> k; vll a(n);get(a); ll s = 0; vll t; for(int i=0;i> q; //for(auto e:t) std::cout << e << " "; //std::cout << '\n'; re(i, q){ ll x;std::cin >> x; ll ans = upper_bound(all(t), x) - t.begin(); std::cout << ans << '\n'; } return 0; }