#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, c, h, z;
  cin >> a >> b >> c;
  long long *ff = new long long[a];
  for (int i = 0; i < a; i++) cin >> ff[i];
  sort(ff, ff + a);
  h = b / (c + 1);
  z = b - h;
  cout << ff[a - 1] * z + ff[a - 2] * h;
}
