#include <bits/stdc++.h>
using namespace std;
int n, sum, x, a[1001], b[1001];
int main()
{
freopen("running.in", "r", stdin);
freopen("running.out", "w", stdout);
cin >> n >> x ;
for (int i = 1; i <= n; i++)
cin >> a[i];
for (int i = 1; i <= n; i++)
cin >> b[i];
for (int i = 1; i <= n; i++)
if (a[i] > b[i])
sum += a[i] - b[i];
if (sum * x > 10000)
cout << "2 hard 4 me";
else
cout << sum * x;
fclose(stdin);
fclose(stdout);
return 0;
}