#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  string s;
  cin >> s;
  int firstsum = 0;
  int secondsum = 0;
  int firstq, secondq;
  firstq = secondq = 0;
  for (int i = 0; i < n / 2; ++i) {
    if (s[i] == '?')
      ++firstq;
    else
      firstsum += s[i] - '0';
  }
  for (int i = n / 2; i < n; ++i) {
    if (s[i] == '?')
      ++secondq;
    else
      secondsum += s[i] - '0';
  }
  if (firstq == secondq) {
    if (firstsum == secondsum) {
      cout << "Bicarp" << endl;
    } else {
      cout << "Monocarp" << endl;
    }
  } else {
    int turns, diff;
    if (firstq > secondq) {
      turns = firstq - secondq;
      diff = secondsum - firstsum;
    } else {
      turns = secondq - firstq;
      diff = firstsum - secondsum;
    }
    turns /= 2;
    if (diff == turns * 9) {
      cout << "Bicarp" << endl;
    } else {
      cout << "Monocarp" << endl;
    }
  }
}
