#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int n, x, y;
  cin >> n >> x >> y;
  char c;
  long long s = 0;
  bool b = 0;
  for (int i = 0; i < n; i++) {
    cin >> c;
    if (b == 1 && c == '1') {
      b = 0;
      s++;
    } else if (b == 0 && c == '0') {
      b = 1;
    }
  }
  if (c == '0') s++;
  if (s > 0 && x < y) {
    cout << (s - 1) * x + y;
  } else
    cout << s * y;
}
