#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, x, y;
  string s;
  cin >> n >> x >> y >> s;
  long long flag = 0, i, c = 0;
  for (i = 0; i < n; i++) {
    if (flag == 0) {
      if (s[i] == '0') {
        c++;
        flag = 1;
      }
    } else {
      if (s[i] == '1') flag = 0;
    }
  }
  if (c == 0)
    cout << "0";
  else {
    long long a1 = c - 1, a2 = 1, min = 100000000000000000, ans;
    for (i = 1; i <= c; i++) {
      ans = a1 * x + a2 * y;
      if (ans < min) min = ans;
      a1--;
      a2++;
    }
    cout << min;
  }
  return 0;
}
