#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  string s;
  cin >> s;
  long long l = 0, r = 0;
  long long x = 0, y = 0;
  for (long long i = 0; i < n; i++) {
    if (s[i] != '?') {
      if (i < (n / 2)) {
        l += (s[i] - '0');
      } else {
        r += (s[i] - '0');
      }
    } else {
      if (i < (n / 2)) {
        x++;
      } else {
        y++;
      }
    }
  }
  if (x < y) {
    swap(x, y);
    swap(l, r);
  }
  long long t1 = (x + y) / 2;
  long long t2 = (x + y - t1);
  bool flag = true;
  if ((l + 9 * t1) > (r + 9 * y)) {
    flag = false;
  }
  if ((l + 9 * (x - t1)) < r) {
    flag = false;
  }
  if (!flag) {
    cout << "Monocarp" << endl;
  } else {
    cout << "Bicarp" << endl;
  }
  return 0;
}
