#include <bits/stdc++.h>
using namespace std;
const long long inf = 100000000000000000LL;
const double mod = 1e9 + 7;
bool cmp(int x, int y) { return x > y; }
int main() {
  long long n, x, y;
  string str;
  cin >> n >> x >> y;
  cin >> str;
  int cou = 0, flg = 0;
  for (int i = 0; i < n; i++) {
    if (str[i] == '0' && flg == 0) {
      cou++;
      flg = 1;
    } else if (str[i] == '1')
      flg = 0;
  }
  long long ans = 1e18;
  for (long long i = 0; i < cou; i++) {
    long long re = i * x + (cou - i) * y;
    ans = min(ans, re);
  }
  if (ans != 1e18)
    cout << ans;
  else
    cout << 0;
  return 0;
}
