Coconut Canopy


"You think you just fell out of a coconut tree? You exist in the context of all in which you live and came before you"

As a coconut farmer, your yield has been low because you have not been considering the context in which you live. Specifically, you have not been placing your coconut baskets to maximise the amount of coconuts collected.

You live on a street with nn total positions, labelled 11 to nn. On this street, there are mm coconut trees, each of which is located at a specific position in the street, nin_i.

Rather than climbing the coconut trees, you can set up to kk baskets at any position 11 to nn so that it collects coconuts that fall on that position. If a coconut tree is located at nin_i, then it will drop a coconut into neighbouring positions overnight, that is, a coconut will be dropped into baskets at ni−1n_i-1 and ni+1n_i + 1.

Given you have kk baskets, what is the maximum amount of coconuts you can collect overnight?

Input

The first line contains 3 integers, nn, mm and kk, the number of positions, the coconut trees and the number of baskets.

The second line contains mm integers, each with a value of nin_i, describing the position of one coconut tree. These positions are distinct.

Output

A single integer, maximum number of coconuts that can be collected using the optimal basket choice.

Constraints

  • 1≤n,m,k≤1051 \le n, m, k \le 10^5
  • m,k≤nm, k \le n
  • 1≤ni≤n1 \le n_i \le n

Example 1

Input 1
4 3 2
1 3 4
Output 1
3
Explanation

Putting a basket at location 2 will collect 2 coconuts from neighbouring trees, whilst putting a coconut in location 3 will collect a coconut from the tree at location 4, giving 3 coconuts.

Comments0


No comments yet

Be the first to comment.

New comment


Log in to join the discussion.