#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, x, arr[105], cnt = 0;
  cin >> n >> k >> x;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  sort(arr, arr + n);
  int sum = 0;
  for (int i = n - 1; i >= 0; i--) {
    if (cnt < k) {
      sum += x;
      cnt++;
    } else
      sum += arr[i];
  }
  cout << sum;
}
