#include <bits/stdc++.h>
using namespace std;
const int MAXN = 2e5 + 3;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int n;
  string second;
  cin >> n >> second;
  int pol = n / 2;
  int wyn1 = 0, wyn2 = 0;
  int zap1 = 0, zap2 = 0;
  for (int i = 0; i < pol; i++) {
    if (second[i] == '?')
      zap1++;
    else
      wyn1 += second[i] - '0';
    if (second[i + pol] == '?')
      zap2++;
    else
      wyn2 += second[i + pol] - '0';
  }
  if (zap1 < zap2) {
    swap(zap1, zap2);
    swap(wyn1, wyn2);
  }
  if (wyn2 < wyn1) {
    cout << "Monocarp";
    return 0;
  }
  if (zap2 != 0) {
    zap1 -= zap2 - 1;
    zap2 = 1;
  } else {
    if ((wyn2 - wyn1) % 9 == 0 && wyn2 - wyn1 == (zap1 / 2) * 9)
      cout << "Bicarp";
    else
      cout << "Monocarp";
    return 0;
  }
  int ile = zap1 / 2;
  if (ile * 9 + wyn1 != wyn2)
    cout << "Monocarp";
  else
    cout << "Bicarp";
  return 0;
}
