#include <bits/stdc++.h>
using namespace std;
long sum1 = 0, sum2 = 0;
long un1 = 0, un2 = 0;
void getMax(int currSum, int unk, bool) {}
void getMin() {}
int main() {
  int n;
  cin >> n;
  char c;
  for (int i = 0; i < n / 2; i++) {
    cin >> c;
    if (c == '?') {
      un1++;
    } else {
      sum1 += c - '0';
    }
  }
  for (int i = 0; i < n / 2; i++) {
    cin >> c;
    if (c == '?') {
      un2++;
    } else {
      sum2 += c - '0';
    }
  }
  if (un1 == un2) {
    cout << (sum1 == sum2 ? "Bicarp" : "Monocarp") << endl;
    return 0;
  }
  if (un1 > un2) {
    std::swap(un1, un2);
    std::swap(sum1, sum2);
  }
  int min1, max1, min2, max2;
  min1 = max1 = un1 / 2 * 9 + sum1;
  if (un1 % 2 == 1) {
    min1 += 9;
  }
  bool turnM = un1 % 2 == 0;
  min2 = max2 = un2 / 2 * 9 + sum2;
  if (un2 % 2 == 1) {
    min2 += 9;
  }
  cout << ((min1 >= min2 && max2 >= max1) ? "Bicarp" : "Monocarp") << endl;
  return 0;
}
