#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n, x, y;
  cin >> n >> x >> y;
  string s;
  cin >> s;
  long long o1 = 0;
  long long ans = 0;
  for (long long i = 0; i < n; i++)
    if (s[i] == '1') o1++;
  if (o1 == n) {
    cout << 0;
    return;
  }
  if (o1 == 0) {
    cout << y;
    return;
  }
  if (y <= x) {
    for (long long i = 0; i < n; i++) {
      long long c = 0;
      while (i < n && s[i] == '0') i++, c = 1;
      if (c) ans += y;
    }
    cout << ans;
    return;
  } else {
    for (long long i = 0; i < n; i++) {
      while (i < n && s[i] == '1') i++;
      long long c = 0;
      while (i < n && s[i] == '0') i++, c = 1;
      if (c) ans++;
    }
    ans = (ans - 1) * x + y;
    cout << ans;
  }
}
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
