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