#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, x, y;
  cin >> n >> x >> y;
  string s;
  cin >> s;
  long long zero = 0;
  if (s[0] == '0') zero++;
  for (long long i = 1; i < n; i++) {
    if (s[i] == '0' and s[i - 1] == '1') {
      zero++;
    }
  }
  if (zero == 0)
    cout << 0 << endl;
  else {
    long long ans = (zero - 1) * x;
    ans += y;
    ans = min(ans, (zero * y));
    cout << ans << endl;
  }
  return 0;
}
