#include <bits/stdc++.h>
using namespace std;
const int N = 5e5 + 123, M = 3e3 + 123, inf = 1e9 + 123, mod = 1e9 + 7;
const long long INF = 1e18;
int main() {
  cin.tie(0);
  cout.tie(0);
  ios_base::sync_with_stdio(NULL);
  int n, x, y;
  cin >> n >> x >> y;
  int cnt = 1, v[n + 1];
  char a[n + 1];
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    if (a[i] == '1') {
      v[cnt++] = i;
    }
  }
  v[0] = 0;
  v[cnt] = n + 1;
  int ans = 0;
  for (int i = 1; i <= cnt; i++) {
    if (v[i] - v[i - 1] > 1) {
      ans++;
    }
  }
  if (ans == 0) {
    cout << 0;
    return 0;
  }
  cout << (ans - 1) * 1LL * min(x, y) + y;
  return 0;
}
