#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, y;
  cin >> n >> x >> y;
  long long count = 0;
  getchar();
  int first1 = 0;
  char c = getchar();
  char cr = c;
  for (int i = 1; i < n; ++i) {
    c = getchar();
    if (c == cr) {
      continue;
    } else {
      if (c == '1') {
        count++;
      }
      cr = c;
    }
  }
  if (c == '1') {
    count--;
  }
  if (count == -1) {
    cout << 0;
    return 0;
  } else if (count == 0) {
    cout << y;
    return 0;
  } else {
    cout << min(min(x, y) * count + y, (count + 1) * y);
    return 0;
  }
}
