#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, a, b;
  cin >> n >> a >> b;
  string x;
  cin >> x;
  long long sectors = 0;
  char hold = x[0];
  for (int i = 1; i < n; i++) {
    if (i == n - 1) {
      if (x[i] == '0') {
        sectors++;
      }
    }
    if (hold == x[i]) {
      continue;
    } else {
      hold = x[i];
      if (x[i] == '1') {
        sectors++;
      }
    }
  }
  if (x.size() == 1 && x[0] == '0') {
    std::cout << b;
    return 0;
  }
  if (sectors == 0) {
    std::cout << 0;
    return 0;
  }
  std::cout << (sectors - 1) * (min(a, b)) + b << endl;
}
