#include <bits/stdc++.h>
using namespace std;
void codeforces_997A() {
  int n;
  long long int x, y;
  while (cin >> n >> x >> y) {
    int count = 0;
    char prechar = '1';
    getchar();
    for (int index = 0; index < n; index++) {
      if (prechar != getchar()) {
        if (prechar == '1')
          prechar = '0';
        else
          prechar = '1';
        count++;
      }
    }
    getchar();
    if (prechar == '0') count++;
    if (count == 0)
      cout << 0 << endl;
    else if (x >= y)
      cout << count / 2 * y << endl;
    else
      cout << x * ((count / 2) - 1) + y << endl;
  }
}
int main() {
  codeforces_997A();
  return 0;
}
