#include <bits/stdc++.h>
using namespace std;
char s[300179];
int main() {
  int n;
  long long x, y;
  scanf("%d %lld %lld", &n, &x, &y);
  scanf("%s", s);
  int a = 0;
  for (int i = (0); i < (n); i++) {
    if (s[i] == '0' && (i == 0 || s[i - 1] != '0')) a++;
  }
  long long ans = numeric_limits<long long>::max();
  for (int i = (0); i < (a); i++) {
    ans = min(ans, 1ll * (a - i) * y + 1ll * i * x);
  }
  if (a == 0) ans = 0;
  cout << ans << endl;
  return 0;
}
