#include <bits/stdc++.h>
using namespace std;
long long MAX = 9223372036854775807;
void scan(int &x) {
  bool neg = false;
  register int c;
  x = 0;
  c = getchar();
  if (c == '-') {
    neg = true;
    c = getchar();
  }
  for (; (c > 47 && c < 58); c = getchar()) x = (x << 1) + (x << 3) + c - 48;
  if (neg) x *= -1;
}
int main() {
  long long n, x, y;
  cin >> n >> x >> y;
  long long count = 0;
  bool visit = false;
  string s;
  cin >> s;
  if (s[s.length() - 1] == '0') {
    s += "1";
  }
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == '0' && !visit) {
      visit = true;
    } else if ((visit && s[i] == '1') ||
               ((visit || s[i] == '0') && i == s.length() - 1)) {
      count++;
      visit = false;
    }
  }
  if (count == 0) {
    cout << 0;
  } else if ((count - 1) * x + y <= count * y) {
    cout << (count - 1) * x + y;
  } else {
    cout << count * y;
  }
  return 0;
}
