#include <bits/stdc++.h>
using namespace std;
long long a, b, c, kol[10];
char k, t;
int main() {
  cin >> a >> b >> c;
  cin >> k;
  for (long long i = 0; i < a - 1; i++) {
    cin >> t;
    if (t != k) kol[k - '0']++;
    k = t;
  }
  kol[k - '0']++;
  if (kol[0] == 0) {
    cout << 0;
  } else {
    cout << (kol[0] - 1) * min(b, c) + c;
  }
}
