#include <bits/stdc++.h>
using namespace std;
template <typename T>
std::ostream &operator<<(std::ostream &out, vector<T> &v) {
  for (typename vector<T>::size_type i = 0; i < v.size(); ++i)
    out << v[i] << " ";
  out << "\n";
  return out;
}
template <typename T, typename N>
std::ostream &operator<<(std::ostream &out, vector<pair<T, N> > &v) {
  for (size_t i = 0; i < v.size(); ++i)
    out << "(" << v[i].first << ", " << v[i].second << ") ";
  out << "\n";
  return out;
}
template <typename T>
std::ostream &operator<<(std::ostream &out, vector<vector<T> > &v) {
  for (size_t i = 0; i < v.size(); ++i) {
    for (size_t j = 0; j < v[i].size(); ++j) {
      out << v[i][j] << " ";
    }
    out << "\n";
  }
  return out;
}
int main() {
  std::ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, x, y;
  cin >> n >> x >> y;
  string a;
  cin >> a;
  int zero_blocks = 0;
  int count = 0;
  for (int i = 0; i < n; ++i) {
    if (a[i] == '1') {
      if (count) {
        ++zero_blocks;
        count = 0;
      }
    } else {
      ++count;
    }
  }
  if (count) {
    ++zero_blocks;
  }
  if (!zero_blocks) {
    cout << "0\n";
    return 0;
  }
  if (zero_blocks == 1) {
    cout << y << "\n";
    return 0;
  }
  long long min_cost = 0;
  if (x < y) {
    min_cost = (long long)(zero_blocks - 1) * x + y;
  } else {
    min_cost = (long long)zero_blocks * y;
  }
  cout << min_cost << "\n";
  return 0;
}
