#include <bits/stdc++.h>
using namespace std;
int main(int argc, char** argv) {
  int n, a, b;
  cin >> n >> a >> b;
  vector<int> p(n + 1, 1);
  for (int i = 0; i < n; ++i) {
    char c;
    cin >> c;
    p[i] = c == '1';
  }
  long long r = 0;
  for (int i = 0; i < n; ++i) r += p[i] == 0 && p[i + 1] == 1;
  long long res = 0;
  if (r > 0) {
    res = (r - 1) * min(a, b) + b;
  }
  cout << res << endl;
  return 0;
}
