#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  long long n, x, y;
  cin >> n >> x >> y;
  string s;
  cin >> s;
  long long count0 = 0, start = 0;
  for (int i = 1; i < s.size(); i++) {
    if (s[i] != s[i - 1] && s[i - 1] == '0') count0++;
  }
  if (s[n - 1] == '0') count0++;
  long long res = LLONG_MAX;
  if (count0 == 0) {
    cout << 0;
    return 0;
  }
  for (int i = 0; i < count0; i++) {
    res = min(res, (count0 - i) * y + i * x);
  }
  cout << res;
  return 0;
}
