#include <bits/stdc++.h>
using namespace std;
const int tinf = (int)1e9 + 7;
const long long inf = (long long)1e18 + 7;
const int N = 4e5 + 5;
long long gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
int main() {
  {
    ios ::sync_with_stdio(false);
    cin.tie(0);
  }
  long long n, x, y, Min = inf, sc = 0, st = 0;
  vector<pair<long long, long long>> e;
  string second, s1;
  cin >> n >> x >> y;
  cin >> second;
  long long d[1000] = {};
  for (int i = 0; i < n; i++) {
    long long t = i;
    while (i + 1 < n && second[i + 1] == second[i]) i++;
    d[second[i]]++;
  }
  if (!d['0'])
    cout << 0;
  else
    cout << (d['0'] - 1) * min(x, y) + y;
}
