#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, i, j, a = 0, b = 0, x, y, c = 0;
  string s;
  cin >> n >> x >> y >> s;
  if (s[0] == '0')
    a++;
  else
    b++;
  for (i = 1; i < n; i++) {
    if (s[i] != s[i - 1]) {
      if (s[i] == '0')
        a++;
      else
        b++;
    }
  }
  if (s[0] == '1' && s[n - 1] == '1')
    c = (b - 2) * x + y;
  else if (s[0] == '1' || s[n - 1] == '1')
    c = (b - 1) * x + y;
  else
    c = b * x + y;
  c = min(c, y * a);
  if (a == 0) c = 0;
  if (b == 0) c = y;
  cout << c;
  return 0;
}
