#include <bits/stdc++.h>
using namespace std;
void Genawy() {
  std::ios_base::sync_with_stdio(0);
  cin.tie(NULL), cout.tie(NULL);
}
int main() {
  Genawy();
  long long n, x, y;
  cin >> n >> x >> y;
  string s;
  cin >> s;
  long long cnt = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == '0') {
      int j = i;
      while (j < n && s[j] == '0') j++;
      cnt++;
      i = j - 1;
    }
  }
  if (cnt == 0) {
    cout << 0 << endl;
    return 0;
  }
  if (x < y)
    cout << (cnt - 1) * x + y << endl;
  else
    cout << cnt * y << endl;
  return 0;
}
