#include <bits/stdc++.h>
using namespace std;
template <class T>
class compare {
 public:
  bool operator()(pair<T, T> &x, pair<T, T> &y) {
    if (x.first == y.first) {
      return x.second > y.second;
    }
    return x.first > y.first;
  }
};
long long power(long long a, int b) {
  long long po = 1;
  while (b) {
    if (b & 1) po *= a;
    a *= a;
    b >>= 1;
  }
  return po;
}
template <class T>
pair<T, T> operator+(const pair<T, T> &a, const pair<T, T> &b) {
  return {a.first + b.first, a.second + b.second};
}
template <class T>
pair<T, T> operator-(const pair<T, T> &a, const pair<T, T> &b) {
  return {a.first - b.first, a.second - b.second};
}
template <class T>
pair<T, T> operator*(const pair<T, T> &a, const pair<T, T> &b) {
  return {a.first * b.first, a.second * b.second};
}
template <class T>
pair<T, T> operator%(const pair<T, T> &a, const pair<T, T> &b) {
  return {a.first % b.first, a.second % b.second};
}
template <class T, class U>
pair<T, T> operator+(const pair<T, T> &a, const U &b) {
  return {a.first + b, a.second + b};
}
template <class T, class U>
pair<T, T> operator*(const pair<T, T> &a, const U &b) {
  return {a.first * b, a.second * b};
}
int Set(int N, int pos) { return N = N | (1 << pos); }
int reset(int N, int pos) { return N = N & ~(1 << pos); }
bool check(long long N, int pos) { return (bool)(N & (1LL << pos)); }
void bi() {
  cout << "Bicarp"
       << "\n";
  exit(0);
}
void mono() {
  cout << "Monocarp"
       << "\n";
  exit(0);
}
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int n;
  cin >> n;
  pair<long long, long long> maxi, mini;
  maxi = {0, 0};
  mini = {0, 0};
  string s;
  cin >> s;
  for (int i = 0; i < n / 2; i++) {
    if (s[i] == '?')
      maxi.second++;
    else
      maxi.first += (s[i] - '0');
  }
  for (int i = n / 2; i < n; i++) {
    if (s[i] == '?')
      mini.second++;
    else
      mini.first += (s[i] - '0');
  }
  if (maxi.first < mini.first) {
    swap(maxi, mini);
  }
  if (maxi.second > mini.second) {
    maxi.second -= mini.second;
    mini.second = 0;
  } else {
    mini.second -= maxi.second;
    maxi.second = 0;
  }
  if (maxi.second == 0) {
    if (mini.second == 0 and mini.first == maxi.first) {
      bi();
    } else if (mini.second != 0 and mini.first == maxi.first) {
      mono();
    } else {
      long long dif = maxi.first - mini.first;
      if (mini.second / 2 * 9 == dif)
        bi();
      else
        mono();
    }
  } else {
    mono();
  }
  return 0;
}
