#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9;
const long long inf64 = 1e18;
int main() {
  int n, x, y;
  cin >> n >> x >> y;
  string s;
  cin >> s;
  vector<int> a;
  for (int i = 0; i < n; i++) {
    int j = i;
    while (j < n && s[i] == s[j]) j++;
    j--;
    a.push_back(s[i] - '0');
    i = j;
  }
  if ((int)a.size() == 1) {
    if (a.front()) {
      cout << "0\n";
    } else {
      cout << y << "\n";
    }
    return 0;
  }
  int sz = (int)a.size();
  long long res = 1ll * ((sz - 2) / 2) * min(x, y);
  sz -= ((sz - 2) / 2) * 2;
  if (sz == 3) {
    if (a.front()) {
      res += y;
    } else {
      res += y + min(x, y);
    }
  } else {
    res += y;
  }
  cout << res << "\n";
  return 0;
}
