#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
stringstream output;
inline void eOP();
inline void solve() {
  int n, x, y;
  cin >> n >> x >> y;
  string s;
  cin >> s;
  char p = '1';
  long long cnt = 0;
  for (char c : s) {
    if (p == '1' && c == '0') {
      ++cnt;
    }
    p = c;
  }
  long long result = 0;
  if (cnt) {
    result += y;
    --cnt;
  }
  result += cnt * (min(x, y));
  output << result;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  size_t t = 1;
  for (int i = 0; i < t; ++i) {
    solve();
  }
  eOP();
}
inline void eOP() {
  cout << output.str();
  output.str(string());
  exit(0);
}
