#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;
  char c[n];
  for (long long i = 0, _n = (n); i < _n; i++) {
    cin >> c[i];
  }
  char z = '1';
  long long num = 0;
  for (long long i = 0, _n = (n); i < _n; i++) {
    if (c[i] == '0' && z == '1') num++;
    z = c[i];
  }
  if (num == 0) {
    cout << "0" << endl;
    return 0;
  }
  cout << (num - 1) * (min(x, y)) + y << endl;
}
