#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main(){ int N, M, ans=0, mi; cin >> N >> M; vector A(N), B(M); for (int i=0; i> A[i]; for (int i=0; i> B[i]; for (int i=0; i