#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  long long x, y, cost = 0, seg = 0;
  string str;
  cin >> n >> x >> y;
  cin >> str;
  for (int i = 0; i <= n - 1; i++) {
    if (str[i] == '0' && (i == n - 1 || str[i + 1] == '1')) seg++;
  }
  cost = seg * y;
  for (int i = 0; i < seg - 1; i++) {
    long long c1 = cost - y + x;
    if (c1 < cost) cost = c1;
  }
  cout << cost << "\n";
  return 0;
}
