#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  long long int x, y, ans, freq = 0;
  int n;
  string s;
  bool zero, one;
  zero = one = true;
  cin >> n >> x >> y >> s;
  for (char ch : s) {
    if (ch == '0' && zero) {
      freq++;
      zero = false;
      one = true;
    } else if (ch == '1' && one) {
      zero = true;
      one = false;
    }
  }
  if (!freq)
    ans = 0;
  else if (x <= y)
    ans = (freq - 1) * x + y;
  else
    ans = freq * y;
  cout << ans << '\n';
}
