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