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