#include <bits/stdc++.h>
using namespace std;
long long int mod = 1e9 + 7;
const int size = 1e6 + 1;
int n;
double a[size];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  cin >> n;
  double l, r, c1, c2;
  l = r = c1 = c2 = 0;
  string s;
  cin >> s;
  for (int i = int(0); i < int(n); i++) {
    if (s[i] == '?')
      a[i] = -1;
    else
      a[i] = s[i] - '0';
    if ((i) < n / 2) {
      if (a[i] != -1)
        l += a[i];
      else
        c1++;
    } else {
      if (a[i] != -1)
        r += a[i];
      else
        c2++;
    }
  }
  bool ans = false;
  if (l + 9 * ceil(double(c1 / 2.0)) != r + 9 * ceil(double(c2 / 2.0)))
    ans = true;
  if (!ans)
    cout << "Bicarp";
  else
    cout << "Monocarp";
  return 0;
}
