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