#include <bits/stdc++.h>
using namespace std;
int n, m, k;
const int maxn = 2e5 + 10;
template <class T>
inline T read() {
  int f = 1;
  T ret = 0;
  char ch = getchar();
  while (!isdigit(ch)) {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (isdigit(ch)) {
    ret = (ret << 1) + (ret << 3) + ch - '0';
    ch = getchar();
  }
  ret *= f;
  return ret;
}
template <class T>
inline void write(T n) {
  if (n < 0) {
    putchar('-');
    n = -n;
  }
  if (n >= 10) {
    write(n / 10);
  }
  putchar(n % 10 + '0');
}
template <class T>
inline void writeln(const T &n) {
  write(n);
  puts("");
}
template <typename T>
void _write(const T &t) {
  write(t);
}
template <typename T, typename... Args>
void _write(const T &t, Args... args) {
  write(t), putchar(' ');
  _write(args...);
}
template <typename T, typename... Args>
inline void write_line(const T &t, const Args &...data) {
  _write(t, data...);
}
char s[maxn];
int pre, last;
int r, l;
int main(int argc, char const *argv[]) {
  ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  cin >> n;
  cin >> s + 1;
  for (int i = 1; i <= n / 2; i++)
    if (s[i] == '?')
      ++l;
    else
      pre += s[i] - '0';
  for (int i = n / 2 + 1; i <= n; i++)
    if (s[i] == '?')
      ++r;
    else
      last += s[i] - '0';
  if (pre == last) {
    if (l == r)
      cout << "Bicarp\n";
    else
      cout << "Monocarp\n";
    return 0;
  } else {
    if (pre > last) swap(pre, last), swap(l, r);
    if (l <= r)
      cout << "Monocarp\n";
    else {
      int left = last - pre;
      l -= r;
      l /= 2;
      if (l * 9 == left)
        cout << "Bicarp\n";
      else
        cout << "Monocarp\n";
    }
  }
  return 0;
}
