#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  long long int r, i;
  cin >> r >> i;
  string s;
  cin >> s;
  long long int c1 = 0;
  int k = 0;
  long long int f = 0;
  while (k < s.length()) {
    if (s[k] == '0') {
      c1++;
      while (k < s.length() && s[k] == '0') {
        k++;
      }
      if (k != s.length()) {
        f++;
      }
    }
    k++;
  }
  long long int x = 0;
  cout << min(max(x, (c1 - 1) * r + (1) * i), c1 * i);
}
