#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n, x, y;
  cin >> n >> x >> y;
  string s;
  cin >> s;
  long long swaps = 0, dist = 0;
  if (s[0] == '0') {
    dist += 1;
  }
  for (int i = 0; i < n - 1; ++i) {
    if (s[i] == '0' && s[i + 1] == '1') {
      swaps += 1;
    }
    if (s[i] == '1' && s[i + 1] == '0') {
      dist += 1;
    }
  }
  if (dist > 0) {
    long long minn = (dist - 1) * min(x, y) + y;
    cout << minn << endl;
  } else {
    cout << "0" << endl;
  }
  return 0;
}
