You have a spellbook with n spells. The spells are numbered by sequential integers from 1 to n, and the spell i (1≤i≤n) initially costs A_i MP (mana points). Initially you have m MP.
Your goal is to cast each spell from the spellbook exactly once.
Before you start casting spells, you can eat up to k cookies. Eating a cookie takes zero time. Each time you eat a cookie, you can choose a spell with a positive cost and reduce that cost by 1.
After eating cookies, you start casting spells.
You can repeatedly choose and perform one of the following actions:
Find the minimum amount of time you can spend to cast each of the n spells exactly once. You are free to select the order of the spells.
First line of the input contains three integers n, m and k: the number of spells, the initial MP value and the number of cookies, respectively. The second line contains n integers A_i: the initial costs of the spells in MP (1≤n≤105, 1≤m≤106, 1≤A_i≤m, 0≤k≤∑_i=1nA_i).
Print one integer: the minimum amount of time it takes to cast each of the n spells exactly once.