#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, x, y;
  cin >> n >> x >> y;
  vector<char> a(n);
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
  }
  long long j = 0, p = 0;
  while (j < n) {
    while (a[j] == 48 && j < n) {
      j++;
    }
    p++;
    while (a[j] == 49 && j < n) {
      j++;
    }
  }
  if (a[0] == 49) {
    p--;
  }
  if (p == 0) {
    cout << "0" << endl;
    return 0;
  }
  cout << (p - 1) * min(x, y) + y << endl;
  return 0;
}
