#include #include #include #include #include #include #include #include using namespace std; using ll = long long; using ull = unsigned long long; #define rep(i,n) for(long long i = 0; i < (int)n; i++) #define FOR(i, m, n) for(long long i = (m);i < (n); ++i) #define ALL(obj) (obj).begin(),(obj).end() #define SPEED cin.tie(0);ios::sync_with_stdio(false); template using V = vector; template using P = pair; template using PQ = priority_queue; template using PQR = priority_queue,greater>; void print(V ar) { for(auto x: ar)cout << x << " " ; cout << endl; } ll gcd(ll a, ll b) { if (a0) { if (n%2) { r*=x; r%=p; } x *= x; x %= p; n/=2; } return r; } const ll mod = 998244353; ll f(ll rest, ll a) { ll r = 0; rep(i, a) { //cout << rest+i+1 << " " << mpow((rest+i+1)%mod, mod-2, mod) << endl; r += mpow((rest+i+1)%mod, mod-2, mod); } return r; } int main() { int n, m; cin >> n >> m; V x(n),y(m); rep(i, n)cin >> x[i]; rep(i, m)cin >> y[i]; sort(y.begin(), y.end()); rep(i, n) { int z = m; rep(j, m) { if (x[i]