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