#include <bits/stdc++.h>
using namespace std;
ofstream fo("test.out");
ifstream fi("test.inp");
const long long MOD = 1e9 + 7;
const long long base = 269;
long long n, x, y, cnt;
string s;
int main() {
  cin >> n >> x >> y >> s;
  s = '1' + s + '1';
  for (int i = 0; i < s.length() - 1; i++) {
    if (s[i] == '1' && s[i + 1] == '0') cnt++;
  }
  if (cnt)
    cout << min(x, y) * (cnt - 1) + y;
  else
    cout << 0;
}
