#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, x, y;
  cin >> n >> x >> y;
  string s;
  s.resize(n + 1);
  s[0] = '1';
  for (int i = 1; i <= n; i++) cin >> s[i];
  long long numzero = 0;
  for (int i = 1; i <= n; i++) {
    if (s[i] == '0' && s[i - 1] == '1') numzero++;
  }
  if (numzero == 0) {
    cout << 0 << endl;
    return 0;
  }
  long long z;
  if (x < y) {
    z = x;
  } else
    z = y;
  cout << (numzero - 1) * z + y << endl;
}
