Under construction

Still being built. Things may change

Mini Market

Time limit1sMemory limit512 MB

Level

Not classified yet

Solved
No attempts yet

Problem

There are two large mini market companies in Indonesia, Amart (ACMmart) and Imart (ICPCmart). There are NN points in Indonesia aligned from left to right. The leftmost point is numbered 1 and the rightmost point is numbered NN. Each point has exactly one person. The distance from point ii to point jj is ∣i−j∣|i - j|. There are exactly MM Amarts and KK Imarts in Indonesia. Every person goes to his or her nearest mini market. If the nearest Amart and the nearest Imart are the same distance away, the person goes to an Imart. The number of Amart visitors is the total number of people who go to any Amart that day. Likewise, the number of Imart visitors is the total number of people who go to any Imart that day. The ii-th Amart is located at point AiA_i. You want to place the KK Imarts so that the number of Imart visitors is maximized. More than one mini market may be placed at the same point.

Input

The first line contains three integers NN, MM, and KK (1≤K≤N≤2,000,000,0001 \le K \le N \le 2{,}000{,}000{,}000, 1≤M≤100,0001 \le M \le 100{,}000), the number of points, the number of Amarts, and the number of Imarts. The next line contains MM integers A1,A2,…,AMA_1, A_2, \ldots, A_M (1≤Ai≤N1 \le A_i \le N), the positions of the Amarts.

Output

Print the maximum number of Imart visitors on a single line.

Examples2

  1. Example 1

    Input
    5 3 1
    1 3 5
    
    Expected output
    3
    
  2. Example 2

    Input
    5 3 2
    1 3 5
    
    Expected output
    4