#include <bits/stdc++.h>
using namespace std;
const int maxn = 300005;
int n;
long long x, y;
string s;
int main() {
  cin >> n >> x >> y >> s;
  int numZeros = 0;
  char curr = '1';
  for (char c : s) {
    if (curr == '1' && c == '0') {
      numZeros++;
    }
    curr = c;
  }
  if (numZeros == 0) {
    cout << 0 << '\n';
    return 0;
  }
  long long minans = -1;
  for (long long i = 0; i <= numZeros - 1; i++) {
    long long j = numZeros - i;
    if (minans == -1 || i * x + j * y < minans) {
      minans = i * x + j * y;
    }
  }
  cout << minans << '\n';
  return 0;
}
