#include <bits/stdc++.h>
using namespace std;
#define int long long
int q[10000];
int w[10000];
signed main(){
freopen("running.in","r",stdin);
freopen("running.out","w",stdout);
int a;
cin>>a;
int s;
cin>>s;
for(int i=0;i<a;i++){
cin>>q[i];
}
for(int i=0;i<a;i++){
cin>>w[i];
}
int temp = 0;
for(int i=0;i<a;i++){
int te = q[i] - w[i];
temp = te*s+temp;
}
if(temp>10000){
cout<<"2 hard 4 me";
}else{
cout<<temp;
}
}