#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, y, cnt = 0;
  cin >> n >> x >> y;
  string s;
  cin >> s;
  bool lastZero = false;
  for (int i = 0; i < n; ++i) {
    if (s[i] == '0' && !lastZero) {
      cnt++;
      lastZero = true;
    }
    if (s[i] == '1') lastZero = false;
  }
  long long ans = (long long)cnt * y;
  if (cnt > 1) {
    for (long long i = 0; i < cnt; ++i) {
      long long z = i * x + (cnt - i) * y;
      if (z < ans) ans = z;
    }
  }
  cout << ans << endl;
  return 0;
}
