#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m, k;
  cin >> n >> m >> k;
  vector<long long> arr(n);
  for (long long i = 0; i < n; i++) cin >> arr[i];
  bool check = false;
  long long max1 = 0, max2 = 0, ind;
  for (int i = 0; i < n; i++) {
    if (arr[i] > max1) {
      max1 = arr[i];
      ind = i;
    }
  }
  for (int i = 0; i < n; i++) {
    if (arr[i] == max1 && ind != i) {
      check = true;
      break;
    }
    if (arr[i] > max2 && arr[i] < max1) {
      max2 = arr[i];
    }
  }
  if (check) {
    long long ans = m * max1;
    cout << ans << endl;
  } else {
    long long tmp = k * max1 + max2;
    long long q = m / (k + 1);
    long long ans = q * tmp;
    long long r = m - q * (k + 1);
    ans += r * max1;
    cout << ans << endl;
  }
  return 0;
}
