#include <bits/stdc++.h>
using namespace std;
const int maxn = 3e5 + 5;
string str;
int a[maxn];
int main() {
  int n;
  long long x, y;
  int flag = 0;
  cin >> n >> x >> y >> str;
  if (x > y) flag = 1;
  long long sum = 0;
  for (int i = 0; i < n - 1; i++) {
    if (str[i] == '0' && str[i + 1] == '1') sum++;
  }
  if (str[n - 1] == '0') sum++;
  if (sum == 0)
    printf("0\n");
  else {
    if (flag == 1) {
      long long ans = sum * y;
      printf("%I64d\n", ans);
    } else {
      long long ans = (sum - 1) * x + y;
      printf("%I64d\n", ans);
    }
  }
  return 0;
}
