#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pii = pair<int, int>;
using vi = vector<int>;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, m, k;
  cin >> n >> m >> k;
  vi a(n);
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  sort(begin(a), end(a));
  int x = a[n - 1];
  int y = a[n - 2];
  ll seg = 1LL * x * k + y;
  ll tot = m / (k + 1);
  ll ans = tot * seg + 1LL * x * (m % (k + 1));
  cout << ans << '\n';
  return 0;
}
