#include<stdio.h>
int a[210],b[210],s;
int main(){
int i,j,k,m,n,t;
scanf("%d%d%d",&m,&k,&n);
for(i=1;i<=n;i++)scanf("%d",&a[i]);
for(i=1;i<n;i++)
for(j=i+1;j<=n;j++)
if(a[i]>a[j]){
t=a[i];a[i]=a[j];a[j]=t;
}for(i=1;i<n;i++)b[i]=a[i+1]-a[i];
for(i=1;i<n-1;i++)
for(j=i+1;j<n;j++)
if(b[i]<b[j]){
t=b[i];b[i]=b[j];b[j]=t;
}for(i=m;i<n;i++)s+=b[i];
printf("%d\n",s+(m<n?m:n));
return 0;
}
int a[210],b[210],s;
int main(){
int i,j,k,m,n,t;
scanf("%d%d%d",&m,&k,&n);
for(i=1;i<=n;i++)scanf("%d",&a[i]);
for(i=1;i<n;i++)
for(j=i+1;j<=n;j++)
if(a[i]>a[j]){
t=a[i];a[i]=a[j];a[j]=t;
}for(i=1;i<n;i++)b[i]=a[i+1]-a[i];
for(i=1;i<n-1;i++)
for(j=i+1;j<n;j++)
if(b[i]<b[j]){
t=b[i];b[i]=b[j];b[j]=t;
}for(i=m;i<n;i++)s+=b[i];
printf("%d\n",s+(m<n?m:n));
return 0;
}