#include <bits/stdc++.h>
using namespace std;
const long long N = (long long)1e6 + 100;
const long long mod = 998244353;
const long long inf = INT_MAX;
const long long ll_inf = LLONG_MAX;
const long double PI = acos((long double)-1.0);
const long double eps = 1e-6;
void solve() {
  long long n, x, y;
  cin >> n >> x >> y;
  string s;
  cin >> s;
  s += "1";
  long long cnt = 0;
  for (long long i = 0; i < s.size() - 1; ++i) {
    if (s[i] == '0' && s[i + 1] == '1') {
      ++cnt;
    }
  }
  if (cnt == 0)
    cout << 0 << endl;
  else
    cout << (cnt - 1) * min(x, y) + y << endl;
}
int32_t main() {
  ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
  long long T = 1;
  for (; T; --T) solve();
  return 0;
}
