#include #include #include using namespace std; using i32 = int32_t; using u32 = uint32_t; using i64 = int64_t; using u64 = uint64_t; #define rep(i,n) for(int i=0; i<(n); i++) int main(){ int N,M; cin >> N >> M; vector A(N); rep(i,N) cin >> A[i]; vector> B(A.size() + 1); rep(i,M){ int b; cin >> b; int p = upper_bound(A.begin(), A.end(), b) - A.begin(); B[p].push_back(b); } vector ans(B.size(), 0); rep(i,B.size()) if(!B[i].empty()) ans[i] = 1001001001; for(int i=0; i