#include <bits/stdc++.h>
using namespace std;
int const M = 2e5 + 10, M2 = 1e6 + 10, mod = 1e9 + 7, inf = 1e9 + 10;
vector<int> vec[2];
vector<pair<long long, long long> > ans;
void sta(int t) {
  if (t == 1)
    cout << "Monocarp";
  else
    cout << "Bicarp";
  exit(0);
}
int32_t main() {
  int n;
  cin >> n;
  string x;
  cin >> x;
  int cnt = 0, sm = 0, cnt2 = 0, sm2 = 0;
  for (int i = 0; i < n / 2; i++) {
    if (x[i] == '?')
      cnt++;
    else
      sm += x[i] - '0';
  }
  for (int i = n / 2; i < x.size(); i++) {
    if (x[i] == '?')
      cnt2++;
    else
      sm2 += x[i] - '0';
  }
  if ((cnt2 + cnt) % 2 == 1) {
    sta(1);
  }
  if (cnt2 < cnt) {
    swap(cnt2, cnt);
    swap(sm, sm2);
  }
  if ((sm - sm2) == ((cnt2 - cnt) / 2) * 9) {
    sta(2);
  } else
    sta(1);
}
