#include <bits/stdc++.h>
using namespace std;
const long double eps = 1e-9;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  string s;
  cin >> s;
  int lq = 0, rq = 0;
  long double lsum = 0, rsum = 0;
  for (int i = 0; i < n; ++i) {
    if (i < n / 2) {
      if (s[i] != '?') {
        lsum += (s[i] - '0');
      } else {
        lsum += (long double)4.5;
      }
    } else {
      if (s[i] != '?') {
        rsum += (s[i] - '0');
      } else {
        rsum += (long double)4.5;
      }
    }
  }
  if (fabs(lsum - rsum) < eps) {
    cout << "Bicarp\n";
  } else {
    cout << "Monocarp\n";
  }
}
