#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  if (b == 0) return a;
  a %= b;
  return gcd(b, a);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  long long L = 1;
  for (long long Y = 1; Y <= L; Y++) {
    long long n, x, y;
    cin >> n >> x >> y;
    char a[n + 1];
    cin >> a;
    long long t = 1, ans = 0;
    for (int i = 0; i < n; i++) {
      if (a[i] == '0' && t == 1) {
        t = 0;
        ans++;
      }
      if (a[i] == '1' && t == 0) {
        t = 1;
      }
    }
    if (ans == 0) {
      cout << ans << "\n";
      return 0;
    }
    if (y <= x) {
      cout << ans * y << "\n";
    } else {
      cout << (ans - 1) * x + y << "\n";
    }
  }
  return 0;
}
