#include <bits/stdc++.h>
using namespace std;
int main()
{
int n,m,k,mid,em;
cin >> n >> m >> k;
int haha[m];
map<int,int> group;
for(int i=0;i<m;i++)
cin >> haha[i];
for(int i=0;i<m-1;i++)
{
em = haha[i+1] - haha[i];
group[em]++;
}
while (k)
{
auto it = group.end();
it--;
mid = it->first/2;
group[mid]++;
mid = it->first - mid;
group[mid]++;
it->second--;
if(it->second == 0)
group.erase(it);
k--;
}
auto it = group.end();
it--;
cout << it->first;
return 0;
}