#include <bits/stdc++.h>
using namespace std;
long long mod = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cout.tie(NULL);
  cin.tie(NULL);
  long long i, j, k, n, m, t, x, y;
  cin >> n >> x >> y;
  string a;
  cin >> a;
  long long flag;
  if (a[0] == '0') {
    flag = 1;
  } else {
    flag = 0;
  }
  vector<long long> v;
  for (i = 0; i < n; i++) {
    if (a[i] == '0') {
      if (flag == 1) {
        v.push_back(flag);
      }
      flag = 0;
    } else {
      flag = 1;
    }
  }
  if (v.size() == 0) {
    cout << 0 << endl;
  } else {
    long long temp = v.size();
    cout << min(temp * y, (temp - 1) * x + y);
  }
  return 0;
}
