#include <bits/stdc++.h>
int main() {
  int a[100], b[100], c, d, e, i, j, k = 0, m, n, o;
  scanf("%d %d %d", &c, &d, &e);
  for (i = 0; i < c; i++) {
    scanf("%d", &a[i]);
  }
  for (i = 0; i < c; i++) {
    for (j = 1; j < c; j++) {
      if (a[j - 1] > a[j]) {
        o = a[j - 1];
        a[j - 1] = a[j];
        a[j] = o;
      }
    }
  }
  m = c - d;
  for (j = 0; j < m; j++) {
    k = k + a[j];
  }
  n = k + d * e;
  printf("%d\n", n);
}
