#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  long long m, k;
  cin >> n >> m >> k;
  vector<long long> arr(n);
  long long max1 = -1;
  long long max2 = -2;
  long long temp;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    if (arr[i] > max2) {
      max2 = arr[i];
    }
    if (max2 > max1) {
      temp = max2;
      max2 = max1;
      max1 = temp;
    }
  }
  long long cycle = (max1 * k) + max2;
  long long period = k + 1;
  long long ans = (m / period) * cycle;
  ans += (m % period) * max1;
  cout << ans;
}
