#include <bits/stdc++.h>
using namespace std;
const long long inf = 100000000000000000LL;
const double mod = 1e9 + 7;
int main() {
  long long n, x, y;
  string str;
  cin >> n >> x >> y;
  cin >> str;
  long long cou = 0, flg = 0;
  for (long long i = 0; i < n; i++) {
    if (str[i] == '0' && flg == 0) {
      cou++;
      flg = 1;
    } else if (str[i] == '1')
      flg = 0;
  }
  if (cou != 0) {
    long long res = cou * y, ans = y + x * (cou - 1);
    cout << min(ans, res);
  } else
    cout << 0;
  return 0;
}
