#include <bits/stdc++.h>
using namespace std;
const int MAXN = 200005;
int n, a[MAXN];
char str[MAXN];
inline bool check(int l1, int r1, int l2, int r2) {
  return l1 <= l2 && r1 >= r2;
}
int main() {
  cin >> n >> str + 1;
  for (int i = 1; i <= n; i++) {
    if (str[i] == '?')
      a[i] = -1;
    else
      a[i] = str[i] - '0';
  }
  int l1 = 0, r1 = 0, l2 = 0, r2 = 0;
  int cnt = 0;
  for (int i = 1; i <= n / 2; i++) {
    if (a[i] < 0)
      r1 += 9, cnt++;
    else
      l1 += a[i], r1 += a[i];
  }
  for (int i = n / 2 + 1; i <= n; i++) {
    if (a[i] < 0)
      r2 += 9, cnt++;
    else
      l2 += a[i], r2 += a[i];
  }
  if (check(l1, r1, l2, r2)) {
    while (cnt) {
      if (l2 - l1 <= r1 - r2) {
        l1 += 9;
        if ((l2 - l1) % 9) {
          int c = ((l2 - l1) % 9 + 9) % 9;
          l1 += 9 - c;
          r1 -= c;
        } else {
          if (r2 > l2)
            l2 += 9;
          else
            r1 -= 9;
        }
      } else {
        r1 -= 9;
        if ((l2 - l1) % 9) {
          int c = ((l2 - l1) % 9 + 9) % 9;
          l1 += 9 - c;
          r1 -= c;
        } else {
          if (r2 > l2)
            r2 -= 9;
          else
            l1 += 9;
        }
      }
      cnt -= 2;
    }
    if (l1 == l2)
      cout << "Bicarp" << endl;
    else
      cout << "Monocarp" << endl;
  } else if (check(l2, r2, l1, r1)) {
    while (cnt) {
      if (l1 - l2 <= r2 - r1) {
        l2 += 9;
        if ((l1 - l2) % 9) {
          int c = ((l1 - l2) % 9 + 9) % 9;
          l2 += c;
          r2 -= c;
        } else {
          if (r1 > l1)
            l1 += 9;
          else
            r2 -= 9;
        }
      } else {
        r2 -= 9;
        if ((l1 - l2) % 9) {
          int c = ((l1 - l2) % 9 + 9) % 9;
          l2 += c;
          r2 -= c;
        } else {
          if (r1 > l1)
            r1 -= 9;
          else
            l2 += 9;
        }
      }
      cnt -= 2;
    }
    if (l1 == l2)
      cout << "Bicarp" << endl;
    else
      cout << "Monocarp" << endl;
  } else {
    if (l1 > l2) swap(l1, l2), swap(r1, r2);
    while (cnt) {
      if (r1 > l1)
        r1 -= 9;
      else
        l2 += 9;
      if (r1 > l1) {
        int c = ((l2 - l1) % 9 + 9) % 9;
        l1 += 9 - c;
        r1 -= c;
      } else {
        int c = ((l2 - l1) % 9 + 9) % 9;
        r2 -= 9 - c;
        l2 += c;
      }
      cnt -= 2;
    }
    if (l1 == l2)
      cout << "Bicarp" << endl;
    else
      cout << "Monocarp" << endl;
  }
  return 0;
}
