#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 ans = 0;
  long long int f = 1, c1 = 0, c0 = 0, l0r0 = 0, ch = 0;
  for (long long int i = 0; i < n; i++) {
    if (s[i] == '1') {
      if (f == 1) c1++;
      if (f == 1 && i != 0 && s[i - 1] == '0') ch = 1;
      f = 0;
    } else {
      if (i == 0)
        c0++;
      else {
        if (f == 0) c0++;
      }
      f = 1;
    }
  }
  long long int j = 0;
  long long int count0[c0 + 1];
  long long int c = 0;
  f = 0;
  for (long long int i = 0; i < n; i++) {
    if (s[i] == '1') {
      if (c != 0) {
        count0[j] = c;
        j++;
      }
      f = 0;
      c = 0;
    } else {
      f = 1;
      c++;
    }
  }
  long long int i = 0, cost = 0;
  if (c1 == 1 && c0 == 0) {
    cout << 0;
    return 0;
  }
  if (c0 == 1) {
    cout << y;
  } else {
    if (x > y) {
      cost += (y * (c0));
    } else {
      cost += (x * (c0 - 1));
      cost += y;
    }
    cout << cost;
  }
}
