#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  int br1 = 0;
  int br2 = 0;
  int sum1 = 0;
  int sum2 = 0;
  int brojac = 0;
  for (int i = 0; i < n / 2; i++) {
    if (s[i] == '?') {
      br1++;
      brojac++;
    } else {
      sum1 = sum1 + s[i] - '0';
    }
  }
  int a1 = 0;
  int a2 = 0;
  int b1 = 0;
  int b2 = 0;
  int uk1 = 0;
  int uk2 = 0;
  for (int i = n / 2; i < n; i++) {
    if (s[i] == '?') {
      br2++;
      brojac++;
    } else {
      sum2 = sum2 + s[i] - '0';
    }
  }
  int xum1 = 0;
  int xum2 = 0;
  int x1 = br1 / 2;
  int x2 = br2 / 2;
  uk1 = brojac / 2;
  uk2 = brojac / 2;
  if (brojac % 2 != 0) {
    uk1++;
  }
  if (br1 % 2 != 0) {
    x1++;
    a1 = x1;
    a2 = x1 - 1;
  } else {
    a1 = x1;
    a2 = x1;
  }
  if (br2 % 2 != 0) {
    x2++;
    b1 = x2;
    b2 = x2 - 1;
  } else {
    b1 = x2;
    b2 = x2;
  }
  xum1 = sum1 + 9 * x1;
  xum2 = sum2 + 9 * x2;
  int t1 = -1;
  if (xum1 >= sum2) {
    a1 = uk1 - a1;
    a2 = uk2 - a2;
    if (9 * a2 <= (xum1 - sum2) and 9 * a1 <= (xum1 - sum2)) {
      t1++;
    }
  }
  if (xum2 >= sum1) {
    b1 = uk1 - b1;
    b2 = uk2 - b2;
    if (9 * b2 <= (xum2 - sum1) and 9 * b1 <= (xum2 - sum1)) {
      t1++;
    }
  }
  if (t1 < 1) {
    cout << "Monocarp";
  } else {
    cout << "Bicarp";
  }
}
