#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long int n, x, y;
  cin >> n >> x >> y;
  string str;
  cin >> str;
  long long int cnt = 0;
  int i = 0;
  int ok = 0;
  while (i < str.size()) {
    if (str[i] == '1') {
      cnt++;
      int index = i;
      while (index < str.size() and str[index] == '1') {
        index++;
      }
      i = index;
    } else {
      ok = 1;
      i++;
    }
  }
  if (!ok) {
    cout << 0 << '\n';
    return 0;
  }
  if (str[0] == '1') cnt--;
  if (str[str.size() - 1] == '1') cnt--;
  if (cnt <= 0) {
    cout << y << '\n';
    return 0;
  }
  long long int cost1 = y + (cnt * x);
  long long int cost2 = (cnt + 1) * y;
  cout << min(cost1, cost2) << '\n';
}
