#include <bits/stdc++.h>
using namespace std;
int n;
string s;
int main() {
  cin >> n;
  cin >> s;
  int s1 = 0, s2 = 0, x = 0, y = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == '?' && i < n / 2)
      x++;
    else if (s[i] == '?' && i >= n / 2)
      y++;
    else if (s[i] != '?' && i < n / 2)
      s1 += s[i] - '0';
    else
      s2 += s[i] - '0';
  }
  if ((y - x) * 9 == (s1 - s2) * 2)
    cout << "Bicarp";
  else
    cout << "Monocarp";
}
