#include <bits/stdc++.h>
using namespace std;
const long long N = 5e5 + 5;
const long long MOD = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  string s;
  cin >> s;
  long long sum1 = 0, sum2 = 0;
  long long cnt1 = 0, cnt2 = 0;
  for (long long i = 0; i < n / 2; ++i) {
    if (s[i] == '?')
      cnt1++;
    else
      sum1 += s[i] - '0';
  }
  for (long long i = n / 2; i < n; ++i) {
    if (s[i] == '?')
      cnt2++;
    else
      sum2 += s[i] - '0';
  }
  if (cnt1 > cnt2) {
    swap(cnt1, cnt2);
    swap(sum1, sum2);
  }
  long long del = cnt2 - cnt1;
  del /= 2;
  del *= 9;
  if (sum1 - sum2 == del)
    cout << "Bicarp";
  else
    cout << "Monocarp";
  return 0;
}
