#include<iostream>
#define MAXN 20
using namespace std; int a_1[MAXN];
int a_2[MAXN]; int main()
{
//freopen("acm.acm","r",stdin);
int n;
int m;
int k;
int i;
int sum;
cin>>n>>m>>k;
for(i = 0; i < k; ++ i)
{
cin>>a_1[i];
}
for(i = 0; i < k; ++ i)
{
cin>>a_2[i];
}
sum = 0;
for(i = 0; i < k; ++ i)
{
sum += abs(a_1[i] - a_2[i]);
}
cout<<sum/2<<endl;
}