#include <bits/stdc++.h>
using namespace std;
char s[300005];
int main() {
  int n, x, y;
  scanf("%d%d%d", &n, &x, &y);
  scanf("%s", s);
  int p = 0;
  for (int i = 0; i < n; i++)
    if (s[i] == '0') p++;
  if (p == 0) {
    puts("0");
    return 0;
  }
  long long ans = 0;
  if (x >= y) {
    for (int i = 1; i < n; i++)
      if (s[i] == '1' && s[i - 1] == '0') ans += y;
    if (s[n - 1] == '0') ans += y;
    printf("%lld\n", ans);
  } else {
    if (s[0] == '0')
      p = 1;
    else
      p = 0;
    for (int i = 1; i < n; i++)
      if (s[i] == '0') {
        p++;
        if (p > 1 && s[i - 1] == '1') ans += x;
      }
    ans += y;
    printf("%lld\n", ans);
  }
  return 0;
}
