#include <bits/stdc++.h>
using namespace std;
const long long inf = 1e9;
const long long MOD = 1e9 + 7;
const long long MAX_N = 1e5;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cerr << name << " : " << arg1 << endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << " : " << arg1 << " | ";
  __f(comma + 1, args...);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long n;
  cin >> n;
  string a;
  cin >> a;
  long long cont1 = 0, cont2 = 0;
  long long sum1 = 0, sum2 = 0;
  for (int i = 0; i < a.size() / 2; i++) {
    if (a[i] == '?')
      cont1++;
    else
      sum1 += (a[i] - '0');
  }
  for (int i = a.size() / 2; i < a.size(); i++) {
    if (a[i] == '?')
      cont2++;
    else
      sum2 += (a[i] - '0');
  }
  if (cont1 == cont2) {
    if (sum1 == sum2)
      cout << "Bicarp" << endl;
    else
      cout << "Monocarp" << endl;
  } else if (cont1 > cont2) {
    long long dif1 = sum2 - sum1;
    long long dif = cont1 - cont2;
    if (dif * 9 < dif1) {
      cout << "Monocarp" << endl;
      return 0;
    }
    long long p = 0;
    if (dif & 1) p = 9;
    if (dif1 == (9 * (dif / 2)))
      cout << "Bicarp" << endl;
    else
      cout << "Monocarp" << endl;
  } else {
    long long dif1 = sum1 - sum2;
    long long dif = cont2 - cont1;
    if (dif * 9 < dif1) {
      cout << "Monocarp" << endl;
      return 0;
    }
    long long p = 0;
    if (dif & 1) p = 9;
    if (dif1 == (9 * (dif / 2)))
      cout << "Bicarp" << endl;
    else
      cout << "Monocarp" << endl;
  }
  return 0;
}
