#include <bits/stdc++.h>
void File_IO() {}
using namespace std;
int main() {
  File_IO();
  long long n, x, y;
  cin >> n >> x >> y;
  string line;
  char temp;
  cin >> temp;
  line += temp;
  for (long long i = 1; i < n; i++) {
    cin >> temp;
    if (line.back() == temp)
      continue;
    else
      line += temp;
  }
  long long one = 0, zero = 0;
  for (long long i = 0; i < line.size(); i++) {
    if (line[i] == '0')
      zero++;
    else {
      one++;
    }
  }
  if (line[0] == '1') one--;
  if (line[line.size() - 1] == '1') one--;
  long long ans = 0;
  ans = min((zero * y), (one * x + y));
  cout << max(0ll, ans) << endl;
}
