#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, count = 0;
  long long x, y;
  scanf("%d", &n);
  scanf("%lld", &x);
  scanf("%lld", &y);
  string s;
  cin >> s;
  for (int i = 0; i < n; i++)
    if (s[i] == '1') count++;
  if (count == n) {
    printf("0");
    return 0;
  }
  if (count == 0) {
    printf("%lld\n", y);
    return 0;
  }
  int lastone, nzero = 0, nzeroe = 0;
  for (int i = 0; i < n; i++)
    if (s[i] == '1') lastone = i;
  for (int i = lastone + 1; i < n; i++)
    if (s[i] == '0') nzeroe++;
  if (nzeroe > 1) nzeroe = 1;
  for (int i = 0; i < lastone; i++)
    if (s[i] == '0') {
      nzero++;
      while (s[i + 1] == '0') i++;
    }
  long long ans = y + (nzero + nzeroe - 1) * min(x, y);
  printf("%lld\n", ans);
  return 0;
}
