#include <bits/stdc++.h>
using namespace std;
#define int long long
const int N = 100005;
int n, x, a[N], b[N], ans;
signed main()
{
freopen("running.in", "r", stdin);
freopen("running.out", "w", stdout);
ios :: sync_with_stdio(false);
cin.tie(0), cout.tie(0);
cin >> n >> x;
for(int i = 1; i <= n; i++) cin >> a[i];
for(int i = 1; i <= n; i++)
cin >> b[i], ans += x * (a[i] - b[i]);
if(ans <= 10000) cout << ans;
else cout << "2 hard 4 me";
return 0;
}