#include <bits/stdc++.h>
using namespace std;
int d[20000], z[20000], m, n, ans, id;
int main() {
cin >> n >> m;
for(int i = 0; i < n; i++)
cin >> d[i];
for(int i = 0; i < m; i++)
cin >> z[i];
sort(d, d + n);
sort(z, z + m);
for(int i = 0; i < n; i++) {
while(d[i] > z[id]) {
id++;
if(id == m) {
cout << "you died!";
return 0;
}
}
ans += z[id];
}
cout << ans;
return 0;
}