#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  string s;
  cin >> s;
  long long s1, s2, u1, u2;
  s1 = s2 = u1 = u2 = 0;
  for (int i = 0, _i = (n / 2); i < _i; ++i) {
    if (s[i] == '?')
      u1++;
    else
      s1 += s[i] - '0';
    if (s[i + n / 2] == '?')
      u2++;
    else
      s2 += s[i + n / 2] - '0';
  }
  if ((u1 + u2) % 2 == 1)
    cout << "Monocarp";
  else if (u1 == u2) {
    if (s1 == s2)
      cout << "Bicarp";
    else
      cout << "Monocarp";
  } else {
    int umin = min(u1, u2);
    u1 -= umin;
    u2 -= umin;
    if (u1) {
      swap(s1, s2);
      swap(u1, u2);
    }
    if (s2 >= s1)
      cout << "Monocarp";
    else {
      if ((s1 - s2) == 9 * (u2 / 2))
        cout << "Bicarp";
      else
        cout << "Monocarp";
    }
  }
}
