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