#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int a = 0;
  int d = 0;
  char x;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> x;
    if (x == 'A')
      a += 1;
    else if (x == 'D')
      d += 1;
    else
      cout << "Enter valid name" << endl;
  }
  if (a > d)
    cout << "Anton" << endl;
  else if (d > a)
    cout << "Danik" << endl;
  else if (d = a)
    cout << "Friendship" << endl;
}
