#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios::sync_with_stdio(false);
  long long n, x, y, val, i, x1 = 0, c = 0;
  string s;
  cin >> n >> x >> y;
  cin >> s;
  for (i = 0; i < s.length(); i++) {
    if (s[i] == '1') {
      if (c != 0) {
        x1++;
      }
      c = 0;
    } else {
      c++;
    }
  }
  if (c != 0) {
    x1++;
  }
  if (x1 == 0) {
    cout << 0 << endl;
    return 0;
  }
  val = (x1 - 1) * x + y;
  val = min(val, y * x1);
  cout << val << endl;
}
