#include <bits/stdc++.h>
using namespace std;
const int max_n = 1, inf = 1000111222;
string s;
int main() {
  long long n, x, y;
  cin >> n >> x >> y;
  cin >> s;
  long long cnt0 = 0;
  if (s[0] == '0') cnt0++;
  for (int i = 1; i < s.size(); ++i) {
    if (s[i] == '0' && s[i - 1] == '1') {
      cnt0++;
    }
  }
  if (cnt0 == 0) {
    cout << 0;
    return 0;
  }
  long long ans1 = y * cnt0;
  long long ans2 = x * (cnt0 - 1) + y;
  cout << min(ans1, ans2);
  return 0;
}
