#include <bits/stdc++.h>
using namespace std;
const int maxn = 300030;
char str[maxn];
int main() {
  int n, x, y;
  scanf("%d%d%d", &n, &x, &y);
  int cnt = 0;
  scanf("%s", str);
  int len = strlen(str);
  bool ok = 1;
  for (int i = 0; i < len; i++) {
    if (str[i] == '0' && ok) {
      ok = 0;
      cnt++;
    } else if (str[i] == '1')
      ok = 1;
  }
  if (cnt == 0) return puts("0"), 0;
  printf("%lld\n", 1ll * min(x, y) * (cnt - 1) + y);
  return 0;
}
