#include <bits/stdc++.h>
using namespace std;
long long n, x, y;
string s;
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  cin >> n >> x >> y >> s;
  long long zeros = 0;
  int last = -1;
  for (auto c : s) {
    int b = (c - '0');
    if (b != last && !b) zeros++;
    last = b;
  }
  if (zeros == 0) {
    cout << 0 << endl;
    return 0;
  }
  long long ans1 = x * (zeros - 1) + y;
  long long ans2 = y * (zeros - 1) + y;
  cout << min(ans1, ans2) << endl;
}
