#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, x, y;
  cin >> n >> x >> y;
  string s;
  cin >> s;
  long long int ct = 0, f = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == '0') f = 1;
    if (s[i] == '1' && f == 1) {
      ct++;
      f = 0;
    }
    if (f == 1 && i == n - 1) ct++;
  }
  long long int c = 0;
  f = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == '1' && i != 0 && s[i - 1] == '0') f = 1;
    if (s[i] == '0' && f == 1) {
      c++;
      f = 0;
    }
  }
  long long int ans = 0;
  if (x <= y) {
    ans = c * x + (ct - c) * y;
  } else
    ans = ct * y;
  if (ct == 1) ans = y;
  cout << ans << endl;
}
