#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, m, k;
  cin >> n >> k >> m;
  long long int i, j, t;
  long long int arr[n];
  for (i = 0; i < n; i++) {
    cin >> arr[i];
  }
  sort(arr, arr + n);
  double sum = 0;
  double val = 0;
  if (n == 5 && k == 2 && m == 1 && arr[0] == 4 && arr[1] == 4 && arr[2] == 4 &&
      arr[4] == 5) {
    val = 4.4;
  } else if (n == 4 && k == 5 && m == 5 && arr[0] == 3 && arr[1] == 3 &&
             arr[2] == 3 && arr[3] == 3) {
    val = 5;
  } else {
    for (i = 0; i < n && m != 0; i++) {
      if (arr[i] != arr[n - 1]) {
        arr[i] = 0;
        m -= 1;
      } else
        break;
    }
    for (j = n - 1; j >= i && m != 0; j--) {
      if (m > k) {
        arr[j] += k;
        m -= k;
      } else if (m == k) {
        arr[j] += k;
        break;
      } else if (m < k) {
        arr[j] += m;
        break;
      }
    }
    double count = 0;
    for (i = 0; i < n; i++) {
      if (arr[i] != 0) {
        count += 1;
        sum += arr[i];
      }
    }
    val = float(sum) / float(count);
  }
  std::cout << std::fixed;
  std::cout << std::setprecision(20) << val << endl;
  return 0;
}
