#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, a, b, i, count, var, start;
  string x;
  cin >> n >> a >> b;
  cin >> x;
  count = 0;
  start = 0;
  var = 0;
  i = 1;
  int fuck = 1;
  if (n == 1) {
    if (x[0] == '0')
      cout << b << endl;
    else
      cout << "0\n";
    exit(0);
  }
  for (i = 0; i < n; i++) {
    if (x[i] == '0') {
      count = 0;
      fuck = 0;
    }
    if (x[i] == '1') {
      if (fuck == 0) var++;
      fuck = 1;
    }
  }
  if (x[n - 1] == '0') var++;
  long long ans;
  if (var == 0)
    cout << "0" << endl;
  else {
    if (a < b)
      cout << (var - 1) * a + b << endl;
    else
      cout << (var)*b << endl;
  }
}
