#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, x, y;
  string input;
  cin >> n >> x >> y;
  cin >> input;
  int subs = 0, zeros = 0;
  int flag = 1;
  for (int i = 0; i < n; i++) {
    if (input[i] == '0') zeros++;
    if (input[i] == '0' && flag == 1) {
      flag = 0;
    }
    if (input[i] == '1' && flag == 0) {
      flag = 1;
      subs++;
    }
    if (i == n - 1 && flag == 0) subs++;
  }
  if (subs > 1) {
    cout << min((subs - 1) * x + y, y * subs);
  } else if (subs == 1)
    cout << y;
  else
    cout << 0;
}
