#include <bits/stdc++.h>
using namespace std;
void io() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
}
long long n, m, t, num;
int k;
map<pair<long long, long long>, int> mp;
struct Point {
  long long x, y;
  int num;
  bool flag = false;
};
Point p[200007], ch[200007], tp[200007];
bool cmp(Point a, Point b) {
  if (a.x == b.x)
    return a.y < b.y;
  else
    return a.x < b.x;
}
long long cross(Point a, Point b, Point c) {
  return (b.x - a.x) * (c.y - a.y) - (b.y - a.y) * (c.x - a.x);
}
int andrew(Point p[], Point ch[], long long n) {
  sort(p + 1, p + n + 1, cmp);
  long long top = 0;
  for (int i = 1; i <= n; ++i) {
    while ((top > 1) && (cross(ch[top - 1], ch[top], p[i]) <= 0)) --top;
    ch[++top] = p[i];
  }
  long long tmp = top;
  for (int i = n - 1; i; --i) {
    while ((top > tmp) && (cross(ch[top - 1], ch[top], p[i]) <= 0)) --top;
    ch[++top] = p[i];
  }
  if (n > 1) top--;
  return top;
}
void draw(int top, Point ch[], Point p[]) {
  for (int i = 2; i <= top; ++i) {
    p[mp[make_pair(ch[i].x, ch[i].y)]].num = 1;
    ++i;
    p[mp[make_pair(ch[i].x, ch[i].y)]].num = 2;
  }
  p[1].num = 0;
}
void preset(int s) {
  k = 1;
  for (int i = 1; i <= n; ++i) {
    if (p[i].num == s) continue;
    tp[k++] = p[i];
  }
}
bool judge(int top, Point ch[]) {
  for (int i = 1; i <= top; ++i)
    if (!ch[i].flag) return true;
  return false;
}
int main() {
  io();
  cin >> n;
  ++n;
  p[1].flag = true;
  mp[make_pair(0, 0)] = 1;
  for (int i = 2; i <= n; ++i) {
    cin >> p[i].x >> p[i].y;
    if ((p[i].x == 0) && (p[i].y == 0)) {
      --i, --n;
      continue;
    }
    if (((p[i].x % 2) == 0) && ((p[i].y % 2) == 0)) p[i].flag = true;
  }
  int top = andrew(p, ch, n);
  for (int i = 1; i <= n; ++i) mp[make_pair(p[i].x, p[i].y)] = i;
  draw(top, ch, p);
  if (judge(top, ch)) {
    puts("Ani");
    return 0;
  }
  preset(1);
  top = andrew(tp, ch, k - 1);
  if (judge(top, ch)) {
    puts("Ani");
    return 0;
  }
  preset(2);
  top = andrew(tp, ch, k - 1);
  if (judge(top, ch)) {
    puts("Ani");
    return 0;
  }
  puts("Borna");
}
