#include <bits/stdc++.h>
using namespace std;
const int M = 2e5 + 5;
char str[M];
int main() {
  int n;
  scanf("%d", &n);
  scanf("%s", str);
  int l = 0, lt = 0, r = 0, rt = 0;
  for (int i = 0; i < n; i++) {
    if (i < n / 2) {
      if (str[i] == '?')
        lt++;
      else
        l += str[i] - '0';
    } else {
      if (str[i] == '?')
        rt++;
      else
        r += str[i] - '0';
    }
  }
  if ((l < r && lt > rt) || (l > r && lt < rt) || (l == r && lt == rt)) {
    if (abs(l - r) == 9 * abs(lt - rt) / 2)
      printf("Bicarp\n");
    else
      printf("Monocarp\n");
  } else
    printf("Monocarp\n");
  return 0;
}
