Anton likes to play chess, and so does his friend Danik.

Once they have played n games in a row. For each game it's known who was the winner — Anton or Danik. None of the games ended with a tie.

Now Anton wonders, who won more games, he or Danik? Help him determine this.


-----Input-----

The first line of the input contains a single integer n (1 ≤ n ≤ 100 000) — the number of games played.

The second line contains a string s, consisting of n uppercase English letters 'A' and 'D' — the outcome of each of the games. The i-th character of the string is equal to 'A' if the Anton won the i-th game and 'D' if Danik won the i-th game.


-----Output-----

If Anton won more games than Danik, print "Anton" (without quotes) in the only line of the output.

If Danik won more games than Anton, print "Danik" (without quotes) in the only line of the output.

If Anton and Danik won the same number of games, print "Friendship" (without quotes).


-----Examples-----
Input
6
ADAAAA

Output
Anton

Input
7
DDDAADA

Output
Danik

Input
6
DADADA

Output
Friendship



-----Note-----

In the first sample, Anton won 6 games, while Danik — only 1. Hence, the answer is "Anton".

In the second sample, Anton won 3 games and Danik won 4 games, so the answer is "Danik".

In the third sample, both Anton and Danik won 3 games and the answer is "Friendship".

Difficulty: EASY

Solutions:
a = int(input())
results = input()
Anton = results.count('A')
Danny = results.count('D')
if Anton == Danny:
	print('Friendship')
elif Anton > Danny:
	print('Anton')
else:
	print('Danik')


t1 = input()
t2 = input()
if t2.count('A') > t2.count('D'):
	print('Anton')
elif t2.count('A') < t2.count('D'):
	print('Danik')
else:
	print('Friendship')


n = input()
s = input()
a = [i for i in s if i == 'A']
b = [i for i in s if i == 'D']
if len(a) > len(b):
	print('Anton')
elif len(a) < len(b):
	print('Danik')
else:
	print('Friendship')


(n,) = map(int, input().split())
s = input()
(a, d) = (0, 0)
for i in range(n):
	if s[i] == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
x = len(s)
a = 0
d = 0
for i in range(x):
	if s[i] == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = input()
s = input()
n = int(n)

def solution(n, s):
	a = 0
	b = 0
	for i in range(len(s)):
		if s[i] == 'A':
			a += 1
		else:
			b += 1
	if a > b:
		return 'Anton'
	elif a < b:
		return 'Danik'
	else:
		return 'Friendship'
print(solution(n, s))


n = int(input())
s = input()
count_A = 0
count_D = 0
for char_index in range(len(s)):
	if s[char_index] == 'A':
		count_A += 1
	else:
		count_D += 1
if count_A > count_D:
	print('Anton')
elif count_D > count_A:
	print('Danik')
else:
	print('Friendship')


n = int(input())
liste = list(map(str, input()))
(c1, c2) = (0, 0)
for i in range(len(liste)):
	if liste[i] in 'A':
		c1 += 1
	else:
		c2 += 1
if c1 == c2:
	print('Friendship')
elif c1 > c2:
	print('Anton')
else:
	print('Danik')


A = 0
D = 0
n = int(input())
s = str(input())
for i in range(len(s)):
	if s[i] == 'A':
		A = A + 1
	else:
		D = D + 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


a = input()
b = input()
count1 = 0
count2 = 0
for i in b:
	if i == 'D':
		count1 = count1 + 1
	elif i == 'A':
		count2 = count2 + 1
if count1 > count2:
	print('Danik')
elif count1 < count2:
	print('Anton')
elif count1 == count2:
	print('Friendship')


t = input()
res = input()
(a, d) = (0, 0)
for s in res:
	if s == 'A':
		a += 1
	else:
		d += 1
if a == d:
	print('Friendship')
elif a > d:
	print('Anton')
else:
	print('Danik')


i = int(input())
s = input()
anton = 0
danik = 0
i = 0
for ele in s:
	if ele == 'A':
		anton += 1
	elif ele == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif anton == danik:
	print('Friendship')
else:
	print('Danik')


n = int(input())
str = input()
if str.count('A') > str.count('D'):
	print('Anton')
elif str.count('A') < str.count('D'):
	print('Danik')
else:
	print('Friendship')


werht = input()
a = input()
an = di = 0
for i in a:
	if i == 'A':
		an += 1
	else:
		di += 1
if an > di:
	print('Anton')
elif di > an:
	print('Danik')
else:
	print('Friendship')


a = int(input())
b = input()
if b.count('A') == b.count('D'):
	print('Friendship')
if b.count('A') > b.count('D'):
	print('Anton')
if b.count('A') < b.count('D'):
	print('Danik')


def tusk(s):
	count_d = 0
	count_a = 0
	for S in s:
		if S == 'A':
			count_a += 1
		else:
			count_d += 1
	if count_d > count_a:
		return 'Danik'
	elif count_d < count_a:
		return 'Anton'
	return 'Friendship'
n = int(input())
s = input()
print(tusk(s))


input()
s = input()
a = 0
d = 0
for el in s:
	if el == 'A':
		a += 1
	else:
		d += 1
if a == d:
	print('Friendship')
elif a > d:
	print('Anton')
else:
	print('Danik')


n = int(input())
s = input()
p = s.count('A')
v = s.count('D')
if p < v:
	print('Danik')
elif p > v:
	print('Anton')
else:
	print('Friendship')


import math

def ii():
	return int(input())

def mi():
	return map(int, input().split())

def li():
	return list(mi())
n = ii()
a = input()
if a.count('A') > a.count('D'):
	print('Anton')
elif a.count('A') < a.count('D'):
	print('Danik')
else:
	print('Friendship')


n = input()
s = input()
a = 0
d = 0
for i in s:
	if i == 'A':
		a += 1
	elif i == 'D':
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


nStr = input()
n = int(nStr)
play = input()
a = 0
d = 0
for i in range(n):
	if play[i] == 'A':
		a = a + 1
	else:
		d = d + 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s1 = input()
count1 = s1.count('D')
count2 = s1.count('A')
if count1 > count2:
	print('Danik')
elif count2 > count1:
	print('Anton')
else:
	print('Friendship')


n = int(input())
s = input()
counta = 0
countd = 0
for i in s:
	if i == 'D':
		countd = countd + 1
	elif i == 'A':
		counta = counta + 1
if countd > counta:
	print('Danik')
elif counta > countd:
	print('Anton')
else:
	print('Friendship')


t = int(input())
s = input()
(a, b) = (0, 0)
for i in s:
	if i == 'A':
		a += 1
	else:
		b += 1
if a > b:
	print('Anton')
elif a < b:
	print('Danik')
else:
	print('Friendship')


def fun():
	n = int(input())
	l = list(input())
	if l.count('A') > l.count('D'):
		print('Anton')
	elif l.count('A') < l.count('D'):
		print('Danik')
	else:
		print('Friendship')
fun()


n = int(input())
s = input()
a = s.count('A')
b = s.count('D')
if a - b > 0:
	print('Anton')
elif b - a > 0:
	print('Danik')
else:
	print('Friendship')


t = 0
n = int(input())
s = input()
for i in range(n):
	if s[i] == 'A':
		t = t + 1
	else:
		t = t - 1
if t > 0:
	print('Anton')
elif t < 0:
	print('Danik')
else:
	print('Friendship')


(n, s) = (int(input()), input())
a = s.count('A')
print('Anton' if a > n - a else 'Friendship' if a == n - a else 'Danik')


n = int(input())
s = input()
anton = 0
danik = 0
for i in range(len(s)):
	if s[i] == 'A':
		anton = anton + 1
	else:
		danik = danik + 1
if anton > danik:
	print('Anton')
elif anton == danik:
	print('Friendship')
else:
	print('Danik')


a = int(input())
b = input()
x = 0
z = 0
y = 0
for i in range(0, a):
	if b[x] == 'A':
		z = z + 1
	elif b[x] == 'D':
		y = y + 1
	x = x + 1
if z > y:
	print('Anton')
elif z < y:
	print('Danik')
else:
	print('Friendship')


a = int(input())
b = input()
c = b.count('A')
d = a - c
if c > d:
	print('Anton')
elif c < d:
	print('Danik')
else:
	print('Friendship')


i1 = int(input())
i2 = input()
i = 0
a = 0
d = 0
for i in range(i1):
	if i2[i] == 'A':
		a += 1
	else:
		d += 1
	i += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
d = input().count('D')
print(['Friendship', 'Danik', 'Anton'][(d > n - d) + 2 * (d < n - d)])


def main() -> None:
	input()
	line = input()
	a = line.count('A')
	d = len(line) - a
	if a > d:
		print('Anton')
	elif a < d:
		print('Danik')
	else:
		print('Friendship')
main()


x = int(input())
y = input()
i = 0
A = 0
D = 0
while i < len(y):
	if y[i] == 'A':
		A += 1
	elif y[i] == 'D':
		D += 1
	i += 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


n = int(input())
ip = input()
i = 0
count = 0
if n % 2 == 0:
	half = int(n / 2)
	while i < n:
		if ip[i] == 'A':
			count += 1
		i += 1
	if count == half:
		print('Friendship')
	elif count > half:
		print('Anton')
	else:
		print('Danik')
else:
	half = int(n / 2) + 1
	while i < n:
		if ip[i] == 'A':
			count += 1
		i += 1
	if count >= half:
		print('Anton')
	else:
		print('Danik')


n = input()
s = list(input())
if s.count('A') > s.count('D'):
	print('Anton')
elif s.count('A') < s.count('D'):
	print('Danik')
else:
	print('Friendship')


n = eval(input())
m = input()
x = 0
y = 0
for i in range(n):
	if m[i] == 'A':
		x = x + 1
	else:
		y = y + 1
if x > y:
	print('Anton')
elif x < y:
	print('Danik')
else:
	print('Friendship')


n = int(input(''))
a = input('')
i = 0
b = 0
c = 0
while i < n:
	if a[i] == 'A':
		b += 1
	else:
		c += 1
	i += 1
if b > c:
	print('Anton')
elif b == c:
	print('Friendship')
else:
	print('Danik')


input()
s = input()
d = a = 0
for char in s:
	if char is 'D':
		d += 1
	else:
		a += 1
if d > a:
	print('Danik')
elif d < a:
	print('Anton')
else:
	print('Friendship')


i = input()
i = input()
a = i.count('A')
d = len(i) - a
if a > d:
	print('Anton')
elif a == d:
	print('Friendship')
else:
	print('Danik')


a = int(input())
rog = list(input())
if rog.count('A') > rog.count('D'):
	print('Anton')
elif rog.count('A') < rog.count('D'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
anton = 0
dan = 0
for i in s:
	if i == 'A':
		anton += 1
	if i == 'D':
		dan += 1
if anton > dan:
	print('Anton')
elif anton < dan:
	print('Danik')
else:
	print('Friendship')


n = int(input())
mystring = input()
anton = mystring.count('A')
danik = mystring.count('D')
if anton > danik:
	print('Anton')
elif anton == danik:
	print('Friendship')
else:
	print('Danik')


n = int(input())
a = input()
AN = 0
DA = 0
for x in range(n):
	if a[x] == 'A':
		AN += 1
	else:
		DA += 1
if AN > DA:
	print('Anton')
elif DA > AN:
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = input()
c = a.count('A')
if c + c > n:
	print('Anton')
elif c + c < n:
	print('Danik')
else:
	print('Friendship')


a = int(input())
b = input()
x = b.count('A')
y = b.count('D')
if x > y:
	print('Anton')
elif x < y:
	print('Danik')
else:
	print('Friendship')


num = 0
sumss = 0
n = int(input())
s = input()
for i in range(len(s)):
	if s[i] == 'A':
		num += 1
	else:
		sumss += 1
if num > sumss:
	print('Anton')
elif num == sumss:
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = input()
(anton, danik) = (0, 0)
for c in s:
	if c == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
c = input()
k1 = 0
k2 = 0
for i in c:
	if i == 'A':
		k1 += 1
	else:
		k2 += 1
if k1 > k2:
	print('Anton')
if k1 < k2:
	print('Danik')
if k1 == k2:
	print('Friendship')


n = int(input())
s = [ch for ch in input()]
l = len(s)
a = sum([1 for ch in s if ch == 'A'])
d = l - a
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


a = 0
d = 0
i = input()
k = input()
for x in k:
	if x == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


input()
wins = input()

def win_c(name):
	return wins.count(name)
if win_c('A') > win_c('D'):
	print('Anton')
elif win_c('D') > win_c('A'):
	print('Danik')
else:
	print('Friendship')


import atexit, io, sys
import math
import os
import random
import re
from sys import stdin, stdout
from collections import Counter
from itertools import permutations
sys.setrecursionlimit(3000)

def si():
	return str(stdin.readline())

def ii():
	return int(stdin.readline())

def mi():
	return map(int, stdin.readline().split())

def li():
	return list(mi())

def debug(x):
	return stdout.write(str(x))
n = ii()
s = si()
a = s.count('A')
d = n - a
if a > d:
	debug('Anton')
elif a < d:
	debug('Danik')
else:
	debug('Friendship')


input()
a = input()
anton = len(list(filter(lambda x: x == 'A', list(a))))
danik = len(list(filter(lambda x: x == 'D', list(a))))
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
else:
	print('Friendship')


a = input()
s = input()
if s.count('A') > s.count('D'):
	print('Anton')
elif s.count('A') == s.count('D'):
	print('Friendship')
else:
	print('Danik')


from collections import Counter
input()
s = input()
s = Counter(s)
if s['A'] > s['D']:
	print('Anton')
elif s['D'] > s['A']:
	print('Danik')
else:
	print('Friendship')


(n, s, A, D) = (int(input()), str(input()), 0, 0)
for c in s:
	A += c == 'A'
	D += c == 'D'
print('Friendship' if A == D else 'Anton' if A > D else 'Danik')


number = int(input())
winner = input()
ant = 0
dan = 0
for i in winner:
	if i == 'A':
		ant += 1
	elif i == 'D':
		dan += 1
if ant > dan:
	print('Anton')
elif ant < dan:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
nA = 0
nD = 0
for i in range(len(s)):
	if s[i] == 'A':
		nA += 1
	else:
		nD += 1
if nA > nD:
	print('Anton')
elif nA < nD:
	print('Danik')
else:
	print('Friendship')


x = int(input())
y = input()
a = 0
d = 0
for i in range(x):
	if y[i] == 'A':
		a = a + 1
	elif y[i] == 'D':
		d = d + 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
elif a == d:
	print('Friendship')


n = int(input())
string = str(input())
a = 0
d = 0
for i in string:
	if i == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
elif a == d:
	print('Friendship')


n = int(input())
s = input()
(cnt, cnt2) = (0, 0)
for i in range(len(s)):
	if s[i] == 'A':
		cnt += 1
	else:
		cnt2 += 1
if cnt > cnt2:
	print('Anton')
elif cnt < cnt2:
	print('Danik')
else:
	print('Friendship')


(a, b, c) = ('Anton', 'Danik', 'Friendship')
input()
t = input()
x = t.count('A') - t.count('D')
if x > 0:
	print(a)
elif x < 0:
	print(b)
else:
	print(c)


masukan1 = input()
masukan2 = input()
a = 0
d = 0
for i in masukan2:
	if i == 'A':
		a = a + 1
	if i == 'D':
		d = d + 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


def calculatesResult(outcomeEachGame, n):
	a = len([word for word in outcomeEachGame if word == 'A'])
	d = len([word for word in outcomeEachGame if word == 'D'])
	if a > d:
		return 'Anton'
	if a == d:
		return 'Friendship'
	return 'Danik'
numberOfMatches = int(input())
outcomeEachGame = input()
result = calculatesResult(outcomeEachGame, numberOfMatches)
print(result)


n = int(input())
s = input()
l = list(s)
c = 0
c1 = 0
for i in l:
	if i == 'A':
		c += 1
	elif i == 'D':
		c1 += 1
if c > c1:
	print('Anton')
elif c < c1:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = str(input())
a = 0
d = 0
for ele in s:
	if ele == 'A':
		a += 1
	elif ele == 'D':
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
elif d == a:
	print('Friendship')


n = int(input())
s = list(input())
d = s.count('D')
a = s.count('A')
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
stroka = input()
stroka = list(stroka)
a = 0
d = 0
for i in range(n):
	if stroka[i] == 'D':
		d = d + 1
	elif stroka[i] == 'A':
		a = a + 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


t = int(input())
st = input()
a = st.count('A')
d = st.count('D')
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


int(input())
x = list(map(str, input()))
a = x.count('A')
d = x.count('D')
if a == d:
	print('Friendship')
elif a < d:
	print('Danik')
else:
	print('Anton')


n = input()
game = input()
A = 0
D = 0
for i in range(0, int(n)):
	if game[i] == 'A':
		A += 1
	elif game[i] == 'D':
		D += 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


n = int(input())
l = input()
a = l.count('A')
d = l.count('D')
if d > a:
	print('Danik')
elif a > d:
	print('Anton')
else:
	print('Friendship')


n = int(input())
s = input()
x = 0
y = 0
for i in range(n):
	if s[i] == 'A':
		x = x + 1
		continue
	else:
		y = y + 1
		continue
if x > y:
	print('Anton')
elif x < y:
	print('Danik')
elif x == y:
	print('Friendship')


n = int(input())
x = input().count('A')
print('Anton' if 2 * x > n else 'Friendship' if 2 * x == n else 'Danik')


SAF = input()
a = list(map(str, input()))
ant = 0
dan = 0
for i in a:
	if i == 'A':
		ant += 1
	else:
		dan += 1
if ant > dan:
	print('Anton')
elif dan > ant:
	print('Danik')
else:
	print('Friendship')


n = int(input())
k = input()
k = list(k)
d = 0
a = 0
for x in k:
	if x == 'A':
		a += 1
	else:
		d += 1
if a == d:
	print('Friendship')
elif a > d:
	print('Anton')
else:
	print('Danik')


N = int(input())
string = input()
amountA = 0
amountD = 0
for i in range(N):
	if string[i] == 'A':
		amountA += 1
	else:
		amountD += 1
if amountA > amountD:
	print('Anton')
elif amountD > amountA:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = list(input())
count1 = 0
count2 = 0
for i in range(n):
	if s[i] == 'A':
		count1 += 1
	elif s[i] == 'D':
		count2 += 1
if count1 > count2:
	print('Anton')
elif count1 < count2:
	print('Danik')
else:
	print('Friendship')


a = int(input())
s = str(input())
if s.count('A') > a / 2:
	print('Anton')
elif s.count('A') == a / 2:
	print('Friendship')
else:
	print('Danik')


number_of_games = int(input())
winners = input()
anton_counter = 0
danik_counter = 0
for x in winners:
	if x == 'A':
		anton_counter = anton_counter + 1
	else:
		danik_counter = danik_counter + 1
if anton_counter > danik_counter:
	print('Anton')
elif anton_counter < danik_counter:
	print('Danik')
else:
	print('Friendship')


n = int(input())
winlist = input()
AWIN = 0
DWIN = 0
for i in winlist:
	if i == 'A':
		AWIN += 1
	else:
		DWIN += 1
if AWIN > DWIN:
	print('Anton')
elif AWIN == DWIN:
	print('Friendship')
else:
	print('Danik')


import math, sys, re, itertools, pprint, collections, copy
(rs, ri, rai, raf) = (input, lambda : int(input()), lambda : list(map(int, input().split())), lambda : list(map(float, input().split())))
n = ri()
s = rs()
a = s.count('A')
d = s.count('D')
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
names = input()
A = 0
D = 0
for i in range(len(names)):
	if names[i] is 'A':
		A += 1
	else:
		D += 1
if A > D:
	print('Anton')
elif A < D:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
count = s.count('A')
if count > len(s) / 2:
	print('Anton')
elif count == len(s) / 2:
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = input()
n_anton = sum((i == 'A' for i in s))
n_danik = n - n_anton
if n_anton > n_danik:
	print('Anton')
elif n_anton < n_danik:
	print('Danik')
else:
	print('Friendship')


t = int(input())
s = input()
a = s.count('A')
b = s.count('D')
if a > b:
	print('Anton')
elif a < b:
	print('Danik')
else:
	print('Friendship')


n = int(input())
m = input()
(dscore, ascore) = (0, 0)
for i in range(n):
	if m[i] == 'A':
		ascore += 1
	else:
		dscore += 1
if ascore > dscore:
	print('Anton')
elif dscore > ascore:
	print('Danik')
elif ascore == dscore:
	print('Friendship')


n = input()
a = input()
n = a.count('A')
m = a.count('D')
if n > m:
	print('Anton')
elif m > n:
	print('Danik')
else:
	print('Friendship')


games_played = int(input())
outcome_games = str(input())
anton_wins = 0
danik_wins = 0
for char in outcome_games:
	if char == 'A':
		anton_wins = anton_wins + 1
	else:
		danik_wins = danik_wins + 1
if anton_wins > danik_wins:
	print('Anton')
elif anton_wins < danik_wins:
	print('Danik')
else:
	print('Friendship')


t = int(input())
s = input()
c = 0
k = 0
for i in range(0, len(s)):
	if s[i] == 'A':
		c = c + 1
	else:
		k = k + 1
if c > k:
	print('Anton')
elif c < k:
	print('Danik')
else:
	print('Friendship')


from collections import Counter
n = int(input())
victories = input()
count = Counter(victories)
if count['A'] > count['D']:
	print('Anton')
elif count['A'] < count['D']:
	print('Danik')
else:
	print('Friendship')


n = int(input())
outcome = input()
temporarily = list(outcome)
countA = 0
countD = 0
for i in range(n):
	if temporarily[i] == 'A':
		countA += 1
	elif temporarily[i] == 'D':
		countD += 1
if countA == countD:
	print('Friendship')
elif countA > countD:
	print('Anton')
else:
	print('Danik')


win = int(input()) - input().count('A') * 2
print([['Friendship', 'Danik'][win > 0], 'Anton'][win < 0])


n = int(input())
str = input()
a = 0
b = 0
for i in str:
	if i == 'A':
		a += 1
	elif i == 'D':
		b += 1
if a > b:
	print('Anton')
elif a < b:
	print('Danik')
else:
	print('Friendship')


n = int(input())
x = input()
(a, b) = (x.count('A'), x.count('D'))
if a != b:
	print('Anton' if a > b else 'Danik')
else:
	print('Friendship')


n = input()
s = input()
l = list(s)
c1 = l.count('A')
c2 = l.count('D')
if c1 > c2:
	print('Anton')
elif c2 > c1:
	print('Danik')
else:
	print('Friendship')


n = int(input())
string = str(input())
count = 0
temp = 0
for i in range(0, n):
	if string[i] == 'A':
		count += 1
	else:
		temp += 1
if count > temp:
	print('Anton')
elif count < temp:
	print('Danik')
else:
	print('Friendship')


input()
string = str(input())
if string.count('A') > string.count('D'):
	print('Anton')
elif string.count('A') < string.count('D'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
games = input()
c = 0
for i in games:
	c = c + 1 if i == 'A' else c - 1
ans = 'Anton' if c > 0 else 'Danik' if c < 0 else 'Friendship'
print(ans)


input()
WinText = input()
(i, a) = (0, 0)
for c in WinText:
	if c == 'A':
		a += 1
	else:
		a -= 1
if a > 0:
	print('Anton')
elif a < 0:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
a = 0
for i in s:
	if i == 'A':
		a += 1
if a > n - a:
	print('Anton', end='')
elif a == n - a:
	print('Friendship', end='')
else:
	print('Danik', end='')


x = int(input())
y = input()
z = []
for x in range(len(y)):
	z.append(y[x])
a = z.count('A')
b = z.count('D')
if a == b:
	print('Friendship')
elif a > b:
	print('Anton')
else:
	print('Danik')


n = int(input())
string = input()
danik = 0
anton = 0
for i in string:
	if i == 'A':
		anton += 1
	else:
		danik += 1
if danik > anton:
	print('Danik')
elif anton == danik:
	print('Friendship')
else:
	print('Anton')


n = int(input())
outcome = list(input())
a = outcome.count('A')
b = outcome.count('D')
if a == b:
	print('Friendship')
elif a > b:
	print('Anton')
else:
	print('Danik')


n = input()
a = input()
b = a.count('A')
c = a.count('D')
if b > c:
	print('Anton')
elif b < c:
	print('Danik')
else:
	print('Friendship')


def fun(n, string2):
	countd = 0
	counta = 0
	for i in range(n):
		if string[i] == 'A':
			counta += 1
		elif string[i] == 'D':
			countd += 1
	if counta == countd:
		return 'Friendship'
	elif counta > countd:
		return 'Anton'
	elif countd > counta:
		return 'Danik'
n = int(input())
string = input()
print(fun(n, string))


n = int(input())
s = input()
counterA = 0
counterD = 0
for ch in s:
	if ch == 'A':
		counterA += 1
	else:
		counterD += 1
if counterA == counterD:
	print('Friendship')
elif counterA > counterD:
	print('Anton')
else:
	print('Danik')


num = input()
s = input()
lst = []
for i in range(len(s)):
	lst.append(s[i])
d = lst.count('D')
a = lst.count('A')
if a == d:
	print('Friendship')
if a > d:
	print('Anton')
if a < d:
	print('Danik')


n = int(input())
input_str = input()
anton_num = 0
for c in input_str:
	if c == 'A':
		anton_num += 1
if n < anton_num * 2:
	print('Anton')
elif n > anton_num * 2:
	print('Danik')
else:
	print('Friendship')


a = int(input())
count = 0
count1 = 0
b = input()
for i in range(len(b)):
	if b[i] == 'A':
		count += 1
	else:
		count1 += 1
if count > count1:
	print('Anton')
elif count == count1:
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = input()
res = n / 2
for l in s:
	if l == 'A':
		res -= 1
if res > 0:
	print('Danik')
elif res < 0:
	print('Anton')
else:
	print('Friendship')


n = int(input())
s = list(input())
j = s.count('A')
k = s.count('D')
if j > k:
	print('Anton')
elif j < k:
	print('Danik')
else:
	print('Friendship')


import sys
import itertools
fin = sys.stdin
n = fin.readline().strip()
line = fin.readline().split()
games = list(line[0])
anton = 0
danik = 0
for i in games:
	if i == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


def chess_winner(match):
	a_count = match.count('A')
	d_count = match.count('D')
	if a_count > d_count:
		return 'Anton'
	elif a_count < d_count:
		return 'Danik'
	else:
		return 'Friendship'
num = int(input())
matches = input()
res = chess_winner(matches)
print(res)


n = int(input())
a = input()
b = a.count('A')
if b > n / 2:
	print('Anton')
elif b < n / 2:
	print('Danik')
else:
	print('Friendship')


k = input().strip()
l = input().strip()
if l.count('A') > l.count('D'):
	print('Anton')
elif l.count('A') < l.count('D'):
	print('Danik')
else:
	print('Friendship')


n = str(input())
win = str(input())
A_win = win.count('A')
D_win = win.count('D')
if A_win > D_win:
	print('Anton')
elif A_win < D_win:
	print('Danik')
else:
	print('Friendship')


from collections import Counter

def solve(l):
	c = Counter(l)
	if c['A'] > c['D']:
		return 'Anton'
	elif c['A'] == c['D']:
		return 'Friendship'
	else:
		return 'Danik'

def main():
	n = int(input())
	l = input()
	print(solve(l))
main()


index = int(input())
detail = str(input())
Anton_win = detail.count('A')
Danik_win = detail.count('D')
if Anton_win > Danik_win:
	print('Anton')
elif Danik_win > Anton_win:
	print('Danik')
else:
	print('Friendship')


a = int(input())
b = input()
c = []
for i in range(len(b)):
	c.append(b[i])
d = 0
e = 0
for j in c:
	if j == 'A':
		d += 1
	elif j == 'D':
		e += 1
if d == e:
	print('Friendship')
elif d < e:
	print('Danik')
else:
	print('Anton')


n = int(input().strip())
games = input().strip()
m = games.count('A')
if m > n - m:
	print('Anton')
elif m < n - m:
	print('Danik')
else:
	print('Friendship')


number_of_games = int(input())
results = input()
Anton = 0
Danik = 0
for letter in results:
	if letter == 'A':
		Anton += 1
	elif letter == 'D':
		Danik += 1
if Anton > Danik:
	print('Anton')
elif Anton < Danik:
	print('Danik')
else:
	print('Friendship')


a = int(input(''))
b = input('')
z1 = 0
z2 = 0
for i in b:
	if i == 'A':
		z1 += 1
	else:
		z2 += 1
if z1 > z2:
	print('Anton')
elif z2 > z1:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
number_A = 0
number_D = 0
for c in s:
	if c is 'A':
		number_A += 1
	else:
		number_D += 1
if number_A > number_D:
	print('Anton')
elif number_D > number_A:
	print('Danik')
else:
	print('Friendship')


gms = int(input())
rslt = input()
ant = 0
dan = 0
for each in rslt:
	if each == 'A':
		ant += 1
	else:
		dan += 1
if ant > dan:
	print('Anton')
elif dan > ant:
	print('Danik')
else:
	print('Friendship')


n = eval(input())
name = input()
a = name.count('A')
d = n - a
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


inp1 = input()
inp2 = list(input())
num = int()
for x in inp2:
	if x == 'A':
		num = num + 1
	elif x == 'D':
		num = num - 1
if num > 0:
	print('Anton')
elif num < 0:
	print('Danik')
else:
	print('Friendship')


n = input()
inp = input()
d = 0
a = 0
for k in inp:
	if k == 'D':
		d += 1
	else:
		a += 1
if a == d:
	print('Friendship')
elif a < d:
	print('Danik')
else:
	print('Anton')


n = input()
s = input()
c1 = 0
c2 = 0
c1 = s.count('A')
c2 = s.count('D')
if c1 > c2:
	print('Anton')
elif c2 > c1:
	print('Danik')
else:
	print('Friendship')


n = int(input())
m = input()
x = 0
y = 0
j = len(m)
for i in range(j):
	if m[i] == 'D':
		x = x + 1
	if m[i] == 'A':
		y = y + 1
if x > y:
	print('Danik')
elif y > x:
	print('Anton')
elif x == y:
	print('Friendship')


n = int(input())
s = str(input())
na = s.count('A')
nd = s.count('D')
if na > nd:
	print('Anton')
elif na < nd:
	print('Danik')
elif na == nd:
	print('Friendship')


n = int(input())
s = input()
i = s.count('A')
if i > n / 2:
	print('Anton')
elif i < n / 2:
	print('Danik')
elif i == n / 2:
	print('Friendship')


n = int(input())
a = input()
if a.count('A') > a.count('D'):
	print('Anton')
	exit()
if a.count('A') < a.count('D'):
	print('Danik')
	exit()
print('Friendship')


games_played = int(input())
games_status = input()
anton = games_status.count('A')
danik = games_status.count('D')
if anton == danik:
	print('Friendship')
elif anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')


q = lambda : map(int, input().split())
qs = lambda : input().split()
(n,) = q()
(a,) = qs()
print('Anton' if a.count('A') > a.count('D') else 'Danik' if a.count('A') < a.count('D') else 'Friendship')


n = int(input())
win = str(input())
if win.count('A') > n / 2:
	print('Anton')
elif win.count('A') < n / 2:
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = input()
c_a = 0
c_d = 0
for i in range(len(a)):
	if a[i] == 'A':
		c_a += 1
	else:
		c_d += 1
if c_a > c_d:
	print('Anton')
elif c_d > c_a:
	print('Danik')
else:
	print('Friendship')


x = int(input())
games = input()
anton = 0
for i in range(x):
	if games[i] == 'A':
		anton += 1
output = 'Anton'
if anton == x / 2:
	output = 'Friendship'
elif anton <= x // 2:
	output = 'Danik'
print(output)


input()
(a, d) = map(input().count, ['A', 'D'])
print(['Anton', ['Danik', 'Friendship'][a == d]][a < d or a == d])


r = input()
data = input()
if data.count('A') > data.count('D'):
	print('Anton')
elif data.count('A') == data.count('D'):
	print('Friendship')
else:
	print('Danik')


def read() -> int:
	return int(input())

def read_list() -> list:
	return list(map(int, input().split()))
n = read()
s = input()
a = 0
d = 0
for c in s:
	if 'A' == c:
		a += 1
	elif 'D' == c:
		d += 1
if a == d:
	print('Friendship')
elif a > d:
	print('Anton')
else:
	print('Danik')


bin = int(input())
gamefinal = input()
an = gamefinal.count('A')
da = gamefinal.count('D')
if an > da:
	print('Anton')
elif an < da:
	print('Danik')
else:
	print('Friendship')


n = input()
games = input()
(A, D) = (games.count('A'), games.count('D'))
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


n = int(input())
st = input()
acount = 0
dcount = 0
for ch in st:
	if ch == 'D':
		dcount += 1
	else:
		acount += 1
if acount > dcount:
	print('Anton')
elif dcount > acount:
	print('Danik')
else:
	print('Friendship')


input()
game = input()
a = game.count('A')
d = game.count('D')
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


m = int(input())
s = input().strip()
a = 0
d = 0
for i in range(len(s)):
	if s[i] == 'A':
		a = a + 1
	else:
		d = d + 1
if a > d:
	print('Anton')
elif a == d:
	print('Friendship')
else:
	print('Danik')


n = int(input())
str = input()
a = 0
d = 0
for _ in range(len(str)):
	if str[_] == 'A':
		a += 1
	else:
		d += 1
if a == d:
	print('Friendship')
elif a > d:
	print('Anton')
else:
	print('Danik')


def main():
	n = int(input())
	s = input()
	(a, d) = (0, 0)
	for i in s:
		if i == 'A':
			a += 1
		else:
			d += 1
	if a > d:
		print('Anton')
	elif d > a:
		print('Danik')
	else:
		print('Friendship')
main()


input()
s = input()
A = len(''.join(s.split('D')))
D = len(''.join(s.split('A')))
if A > D:
	print('Anton')
if D > A:
	print('Danik')
if A == D:
	print('Friendship')


n = int(input())
for i in range(n):
	x = list(input())
	if x.count('A') > x.count('D'):
		print('Anton')
	elif x.count('A') == x.count('D'):
		print('Friendship')
	else:
		print('Danik')
	break


n = int(input())
s = input().rjust(n)
d = len(s)
w = 0
y = 0
for i in range(d):
	if s[i] == 'A':
		w = w + 1
	else:
		y = y + 1
if w > y:
	print('Anton')
elif w < y:
	print('Danik')
else:
	print('Friendship')


n = int(input())
string = input()
Anton = 0
David = 0
for i in string:
	if i == 'A':
		Anton += 1
	elif i == 'D':
		David += 1
if Anton > David:
	print('Anton')
elif Anton < David:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = str(input())
x = s.count('A')
y = s.count('D')
if x > y:
	print('Anton')
elif y > x:
	print('Danik')
else:
	print('Friendship')


a = int(input())
string = input()
if string.count('A') > string.count('D'):
	print('Anton')
if string.count('D') > string.count('A'):
	print('Danik')
if string.count('A') == string.count('D'):
	print('Friendship')


n = input()
n = int(n)
word = input()
Anton = 0
Danik = 0
for c in word:
	if c == 'A':
		Anton = Anton + 1
	else:
		Danik = Danik + 1
if Anton == Danik:
	print('Friendship')
elif Anton > Danik:
	print('Anton')
else:
	print('Danik')


nos = int(input())
res = input()
a = res.count('A')
b = res.count('D')
ans = 'Friendship'
if a > b:
	ans = 'Anton'
if b > a:
	ans = 'Danik'
print(ans)


siz = int(input())
a = input()
(count_a, count_d) = (0, 0)
for i in a:
	if i == 'A':
		count_a = count_a + 1
	else:
		count_d = count_d + 1
if count_a > count_d:
	print('Anton')
elif count_a < count_d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
i = input()
print('Anton' if i.count('A') > n // 2 else 'Danik' if i.count('D') > n // 2 else 'Friendship')


no_games = int(input())
matches = input()
anton_counter = 0
danik_counter = 0
for match in matches:
	if match == 'A':
		anton_counter += 1
	else:
		danik_counter += 1
if anton_counter > danik_counter:
	print('Anton')
elif anton_counter < danik_counter:
	print('Danik')
else:
	print('Friendship')


n = int(input())
name = str(input())
s = name.count('A')
y = name.count('D')
if y < s:
	print('Anton')
elif y > s:
	print('Danik')
elif y == s:
	print('Friendship')


n = int(input())
games = str(input())
anton_wins = 0
danik_wins = 0

def calculate_wins():
	global anton_wins
	global danik_wins
	for game in games:
		if game == 'A':
			anton_wins = anton_wins + 1
		else:
			danik_wins = danik_wins + 1

def who_won_more():
	if anton_wins > danik_wins:
		print('Anton')
	elif danik_wins > anton_wins:
		print('Danik')
	else:
		print('Friendship')
calculate_wins()
who_won_more()


num = int(input())
s = str(input())
An = s.count('A')
Da = s.count('D')
if An == Da:
	res = 'Friendship'
elif An > Da:
	res = 'Anton'
else:
	res = 'Danik'
print(res)


n = int(input())
w = input()
a = 0
d = 0
for c in w:
	if c == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


import collections

def solution():
	n = int(input())
	s = input()
	s = collections.Counter(s)
	if n == 0:
		print('Friendship')
	elif s['A'] > s['D']:
		print('Anton')
	elif s['A'] < s['D']:
		print('Danik')
	else:
		print('Friendship')
solution()


def func(st):
	a = st.count('A')
	d = st.count('D')
	if a > d:
		return 'Anton'
	elif d > a:
		return 'Danik'
	return 'Friendship'
n = int(input())
st = input()
print(func(st))


n = int(input())
games = input()
(a, d) = (0, 0)
for i in games:
	if i == 'A':
		a += 1
	else:
		d += 1
print('Anton') if a > d else print('Danik') if d > a else print('Friendship')


n = int(input())
k = input()
count1 = 0
count2 = 0
for i in range(len(k)):
	if k[i] == 'D':
		count1 += 1
	else:
		count2 += 1
if count1 > count2:
	print('Danik')
elif count2 > count1:
	print('Anton')
else:
	print('Friendship')


n = int(input())
s = input().strip()
sa = s.count('A')
sd = s.count('D')
if sd > sa:
	print('Danik')
elif sa > sd:
	print('Anton')
else:
	print('Friendship')


n = int(input())
l = list(input())
a = b = 0
for i in range(n):
	if l[i] == 'A':
		a = a + 1
	else:
		b = b + 1
if a > b:
	print('Anton')
elif b > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
countAnton = 0
countDanik = 0
for i in range(len(s)):
	if s[i] == 'A':
		countAnton += 1
	elif s[i] == 'D':
		countDanik += 1
if countAnton > countDanik:
	print('Anton')
elif countAnton < countDanik:
	print('Danik')
elif countDanik == countAnton:
	print('Friendship')


counts = int(input())
games = [c for c in input()]
a = len([c for c in games if c == 'A'])
d = counts - a
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
a = len(s.replace('D', ''))
b = len(s.replace('A', ''))
if a > b:
	print('Anton')
elif a < b:
	print('Danik')
else:
	print('Friendship')


y = int(input())
z = [str(x) for x in input()]
res = 0
ans = 0
for name in z:
	if name == 'A':
		res += 1
	else:
		ans += 1
if res > ans:
	print('Anton')
elif res == ans:
	print('Friendship')
else:
	print('Danik')


n = int(input())
S = list((char for char in input()))
l = len(S)
c = 0
for i in S:
	if i == 'D':
		c += 1
if c < n / 2:
	print('Anton')
elif c > n / 2:
	print('Danik')
else:
	print('Friendship')


T = int(input())
S = input()
SUMA = 0
SUMD = 0
for I in range(T):
	if S[I] == 'A':
		SUMA += 1
	else:
		SUMD += 1
if SUMA == SUMD:
	print('Friendship')
elif SUMA > SUMD:
	print('Anton')
else:
	print('Danik')


n = int(input())
b = str(input())
c = list(b)
d = c.count('A')
e = c.count('D')
if d > e:
	print('Anton')
elif d == e:
	print('Friendship')
else:
	print('Danik')


n = int(input())
char = input()
count = 0
total = 0
for i in char:
	if 'A' == i:
		count = count + 1
	else:
		total = total + 1
if total > count:
	print('Danik')
elif total == count:
	print('Friendship')
else:
	print('Anton')


import sys
import math
n = int(input())
a = list(input())
(b, c) = (0, 0)
for i in a:
	if i == 'D':
		b += 1
	elif i == 'A':
		c += 1
if b > c:
	print('Danik')
elif b < c:
	print('Anton')
else:
	print('Friendship')


from collections import Counter
inp = input()
inp = input()
ans = Counter(inp)
if ans['A'] > ans['D']:
	print('Anton')
elif ans['D'] > ans['A']:
	print('Danik')
else:
	print('Friendship')


a = input()
b = input()
c = d = 0
for i in b:
	if i == 'A':
		c += 1
	d = int(a) - c
if c > d:
	print('Anton')
elif c < d:
	print('Danik')
else:
	print('Friendship')


N = int(input())
S = input()
(a, d) = (0, 0)
for i in S:
	if i == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
game = str(input())
anton = int(0)
danik = int(0)
i = int(0)
while i < n:
	if game[i] == 'A':
		anton += 1
	else:
		danik += 1
	i += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
T = input()
a = 0
d = 0
for i in range(len(T)):
	if T[i] == 'A':
		a = a + 1
	if T[i] == 'D':
		d = d + 1
if a > d:
	print('Anton')
if a < d:
	print('Danik')
if a == d:
	print('Friendship')


n = int(input())
string = list(str(input()))
countA = 0
for i in string:
	if i == 'A':
		countA += 1
if countA > len(string) / 2:
	print('Anton')
elif countA == len(string) / 2:
	print('Friendship')
else:
	print('Danik')


num = int(input())
word = input()
i = 0
dan = 0
ant = 0
while i < num:
	if word[i] == 'A':
		ant += 1
	else:
		dan += 1
	i += 1
if ant > dan:
	print('Anton')
elif ant < dan:
	print('Danik')
else:
	print('Friendship')


n = input()
s = input()
c_a = 0
c_d = 0
for x in s:
	if x == 'A':
		c_a += 1
	elif x == 'D':
		c_d += 1
if c_a > c_d:
	print('Anton')
elif c_a < c_d:
	print('Danik')
else:
	print('Friendship')


number_of_games = int(input())
outcome_of_games = str(input())
Anton_counter = 0
Danik_counter = 0
for letter in outcome_of_games:
	if letter == 'A':
		Anton_counter += 1
	elif letter == 'D':
		Danik_counter += 1
if Anton_counter > Danik_counter:
	print('Anton')
elif Danik_counter > Anton_counter:
	print('Danik')
else:
	print('Friendship')


Num = input()
Win = input()
if Win.count('A') > Win.count('D'):
	print('Anton')
elif Win.count('A') < Win.count('D'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
Acou = 0
Dcou = 0
if len(s) == n:
	for i in s:
		if i == 'A':
			Acou += 1
		elif i == 'D':
			Dcou += 1
	if Acou == Dcou:
		print('Friendship')
	elif Acou > Dcou:
		print('Anton')
	else:
		print('Danik')


t = int(input())
c_A = 0
c_D = 0
g = input()
for i in g:
	if i == 'A':
		c_A += 1
	else:
		c_D += 1
if c_A > c_D:
	print('Anton')
elif c_D > c_A:
	print('Danik')
else:
	print('Friendship')


a = int(input())
b = input()
a = 0
d = 0
for x in b:
	if x == 'D':
		d += 1
	else:
		a += 1
if a == d:
	print('Friendship')
elif a < d:
	print('Danik')
else:
	print('Anton')


an = 0
dan = 0
h = input()
x = input()
for d in range(int(h)):
	if x[d] == 'A':
		an += 1
	elif x[d] == 'D':
		dan += 1
if an > dan:
	print('Anton')
elif dan > an:
	print('Danik')
else:
	print('Friendship')


x = int(input())
s = input()
a = s.count('A')
d = s.count('D')
if a == d:
	print('Friendship')
elif a > d:
	print('Anton')
else:
	print('Danik')


n = input()
ls = input()
n = int(n)
a = d = 0
for x in ls:
	if x == 'A':
		a += 1
	if x == 'D':
		d += 1
if a > d:
	print('Anton')
if a == d:
	print('Friendship')
if a < d:
	print('Danik')


n = int(input())
games = list(input())
antonWon = games.count('A')
danikWon = len(games) - antonWon
if antonWon > danikWon:
	print('Anton')
elif antonWon < danikWon:
	print('Danik')
else:
	print('Friendship')


def AntonandDanik(s):
	if s.count('A') > s.count('D'):
		print('Anton', end='')
	elif s.count('A') < s.count('D'):
		print('Danik', end='')
	else:
		print('Friendship', end='')
input()
AntonandDanik(input())


n = input('')
s = input('')
countA = countD = 0
for letter in s:
	if letter == 'A':
		countA += 1
	elif letter == 'D':
		countD += 1
if countA > countD:
	print('Anton')
elif countA < countD:
	print('Danik')
elif countA == countD:
	print('Friendship')


input()
score = [x for x in input()]
if score.count('A') > score.count('D'):
	print('Anton')
elif score.count('A') < score.count('D'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = list(input())
c = 0
d = 0
for i in a:
	if i == 'D':
		c += 1
	else:
		d += 1
if c > d:
	print('Danik')
elif c == d:
	print('Friendship')
else:
	print('Anton')


n = int(input())
s = input()

def solve(n, s):
	count = 0
	for c in s:
		if c == 'A':
			count += 1
	if count > n - count:
		print('Anton')
	elif count < n - count:
		print('Danik')
	else:
		print('Friendship')
solve(n, s)


import sys
import math
import bisect
from sys import stdin, stdout
from math import gcd, floor, sqrt, log
from collections import defaultdict as dd
from bisect import bisect_left as bl, bisect_right as br
sys.setrecursionlimit(100000000)
ii = lambda : int(input())
si = lambda : input()
jn = lambda x, l: x.join(map(str, l))
sl = lambda : list(map(str, input().strip()))
mi = lambda : map(int, input().split())
mif = lambda : map(float, input().split())
lii = lambda : list(map(int, input().split()))
ceil = lambda x: int(x) if x == int(x) else int(x) + 1
ceildiv = lambda x, d: x // d if x % d == 0 else x // d + 1
flush = lambda : stdout.flush()
stdstr = lambda : stdin.readline()
stdint = lambda : int(stdin.readline())
stdpr = lambda x: stdout.write(str(x))
mod = 1000000007
n = ii()
s = si()
a = s.count('A')
d = s.count('D')
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
l1 = s.count('A')
l2 = s.count('D')
if l1 > l2:
	print('Anton')
elif l2 > l1:
	print('Danik')
else:
	print('Friendship')


_ = input()
s = input()
a = s.count('A')
d = len(s) - a
if a == d:
	print('Friendship')
else:
	print('Anton' if a > d else 'Danik')


def mCheckInputs(inputList):
	temp = inputList[0]
	if temp.isdigit() and 1 <= int(temp) <= 100000:
		inputList[0] = int(temp)
	else:
		exit(1)
	if len(inputList[1]) == inputList[0] and inputList[1].isalpha():
		pass
	else:
		exit(1)

def mHandleInputs(inputList):
	try:
		inputList.append(input())
		inputList.append(input())
		mCheckInputs(inputList)
	except ValueError as e:
		exit(1)

def mDoWork(inputList, outputList):
	s = inputList[1]
	(A_Count, D_Count, Z_Count) = (0, 0, 0)
	for item in s:
		if item == 'A':
			A_Count += 1
		elif item == 'D':
			D_Count += 1
		else:
			Z_Count += 1
			exit(1)
	if A_Count > D_Count:
		result = 'Anton'
	elif D_Count > A_Count:
		result = 'Danik'
	else:
		result = 'Friendship'
	outputList.append(result)

def mFormatResult(outputList):
	print(outputList[0])

def main():
	inputList = []
	mHandleInputs(inputList)
	outputList = []
	mDoWork(inputList, outputList)
	mFormatResult(outputList)
main()


import collections as c

def getInts():
	return [int(s) for s in input().split()]

def getInt():
	return int(input())

def getStrs():
	return [s for s in input().split()]

def getStr():
	return input()

def listStr():
	return list(input())

def solve():
	N = getInt()
	S = getStr()
	countA = S.count('A')
	countD = S.count('D')
	if countA == countD:
		return 'Friendship'
	if countA > countD:
		return 'Anton'
	return 'Danik'
ans = solve()
print(ans)


n = int(input())
s = list(input())
count = 0
for i in range(len(s)):
	if s[i] == 'A':
		count = count + 1
if count > n - count:
	print('Anton')
if count == n - count:
	print('Friendship')
if count < n - count:
	print('Danik')


n = int(input())
b = list(input())
c = b.count('A')
if c > n / 2:
	print('Anton')
elif c == n / 2:
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = input().upper()
if s.count('A') > s.count('D'):
	print('Anton')
elif s.count('A') < s.count('D'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
s = s.upper()
t = list(s)
a = 0
d = 0
for i in t:
	if i == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


_ = input()
s = input()
A = D = 0
for i in s:
	if i == 'A':
		A += 1
	else:
		D += 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


input()
g = input()
if g.count('A') > g.count('D'):
	print('Anton')
elif g.count('A') < g.count('D'):
	print('Danik')
else:
	print('Friendship')


def main():
	n = int(input())
	inStr = input()
	no = 0
	for it in range(len(inStr)):
		if inStr[it] == 'A':
			no = no + 1
	if no > len(inStr) - no:
		print('Anton')
	elif no < len(inStr) - no:
		print('Danik')
	else:
		print('Friendship')
main()


n = int(input())
s = input()
l = len(s)
a = s.count('A')
d = l - a
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


from __future__ import division, print_function
from fractions import Fraction
import sys
import os
from io import BytesIO, IOBase
from itertools import *
import bisect
from heapq import *
from math import *
from copy import *
from collections import deque
from collections import Counter as counter
from itertools import combinations as comb
from itertools import permutations as permutate
from bisect import bisect_left as bl
from bisect import bisect_right as br
from bisect import bisect
BUFSIZE = 8192

class FastIO(IOBase):
	newlines = 0

	def __init__(self, file):
		self._fd = file.fileno()
		self.buffer = BytesIO()
		self.writable = 'x' in file.mode or 'r' not in file.mode
		self.write = self.buffer.write if self.writable else None

	def read(self):
		while True:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			if not b:
				break
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines = 0
		return self.buffer.read()

	def readline(self):
		while self.newlines == 0:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			self.newlines = b.count(b'\n') + (not b)
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines -= 1
		return self.buffer.readline()

	def flush(self):
		if self.writable:
			os.write(self._fd, self.buffer.getvalue())
			(self.buffer.truncate(0), self.buffer.seek(0))

class IOWrapper(IOBase):

	def __init__(self, file):
		self.buffer = FastIO(file)
		self.flush = self.buffer.flush
		self.writable = self.buffer.writable
		self.write = lambda s: self.buffer.write(s.encode('ascii'))
		self.read = lambda : self.buffer.read().decode('ascii')
		self.readline = lambda : self.buffer.readline().decode('ascii')

def print(*args, **kwargs):
	(sep, file) = (kwargs.pop('sep', ' '), kwargs.pop('file', sys.stdout))
	at_start = True
	for x in args:
		if not at_start:
			file.write(sep)
		file.write(str(x))
		at_start = False
	file.write(kwargs.pop('end', '\n'))
	if kwargs.pop('flush', False):
		file.flush()
if sys.version_info[0] < 3:
	(sys.stdin, sys.stdout) = (FastIO(sys.stdin), FastIO(sys.stdout))
else:
	(sys.stdin, sys.stdout) = (IOWrapper(sys.stdin), IOWrapper(sys.stdout))
from types import GeneratorType

def iterative(f, stack=[]):

	def wrapped_func(*args, **kwargs):
		if stack:
			return f(*args, **kwargs)
		to = f(*args, **kwargs)
		while True:
			if type(to) is GeneratorType:
				stack.append(to)
				to = next(to)
				continue
			stack.pop()
			if not stack:
				break
			to = stack[-1].send(to)
		return to
	return wrapped_func
mod = 1000000007

def inp():
	return sys.stdin.readline().rstrip('\r\n')

def out(var):
	sys.stdout.write(str(var))

def lis():
	return list(map(int, inp().split()))

def stringlis():
	return list(map(str, inp().split()))

def sep():
	return map(int, inp().split())

def strsep():
	return map(str, inp().split())

def zerolist(n):
	return [0] * n

def nextline():
	out('\n')

def testcase(t):
	for p in range(t):
		solve()

def printlist(a):
	for p in range(0, len(a)):
		out(str(a[p]) + ' ')

def gcd(a, b):
	if a == b:
		return a
	while b > 0:
		(a, b) = (b, a % b)
	return a

def lcm(a, b):
	return abs(a // gcd(a, b) * b)

def primesbelow(N):
	correction = N % 6 > 1
	N = {0: N, 1: N - 1, 2: N + 4, 3: N + 3, 4: N + 2, 5: N + 1}[N % 6]
	sieve = [True] * (N // 3)
	sieve[0] = False
	for i in range(int(N ** 0.5) // 3 + 1):
		if sieve[i]:
			k = 3 * i + 1 | 1
			sieve[k * k // 3::2 * k] = [False] * ((N // 6 - k * k // 6 - 1) // k + 1)
			sieve[(k * k + 4 * k - 2 * k * (i % 2)) // 3::2 * k] = [False] * ((N // 6 - (k * k + 4 * k - 2 * k * (i % 2)) // 6 - 1) // k + 1)
	return [2, 3] + [3 * i + 1 | 1 for i in range(1, N // 3 - correction) if sieve[i]]
smallprimeset = set(primesbelow(100000))

def solve():
	n = int(inp())
	s = inp()
	a = s.count('A')
	if a == n - a:
		print('Friendship')
	elif a < n - a:
		print('Danik')
	else:
		print('Anton')
solve()


input()
dcount = 0
w = input()
for i in w:
	dcount += 1 if i == 'D' else 0
if dcount == len(w) - dcount:
	print('Friendship')
	exit()
print('ADnatnoink'[int('01'[1 if dcount > len(w) - dcount else 0])::2])


x = int(input())
s = input()
c = 0
for i in s:
	if i == 'A':
		c += 1
if c > x - c:
	print('Anton')
elif c < x - c:
	print('Danik')
else:
	print('Friendship')


n = input()
s = input()
a = len([_ for _ in s if _ == 'A'])
if a > len(s) - a:
	print('Anton')
elif a < len(s) - a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
ant = s.count('A')
if ant > n - ant:
	print('Anton')
elif ant < n - ant:
	print('Danik')
else:
	print('Friendship')


def split(word):
	return [char for char in word]
n = int(input())
lst = split(input())
anton = 0
danik = 0
for i in range(0, n):
	if lst[i] == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


length = int(input())
games = input()
anton = games.count('A')
if length - anton == anton:
	print('Friendship')
elif length - anton > anton:
	print('Danik')
else:
	print('Anton')


a = [input() for i in range(2)][1]
if a.count('A') > a.count('D'):
	print('Anton')
elif a.count('A') < a.count('D'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
arr = str(input())
count1 = 0
count2 = 0
for i in range(n):
	if arr[i] == 'A':
		count1 += 1
	else:
		count2 += 1
if count1 > count2:
	print('Anton')
elif count1 < count2:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
flagA = 0
flagD = 0
for i in s:
	if i == 'A':
		flagA += 1
	elif i == 'D':
		flagD += 1
if flagA > flagD:
	print('Anton')
elif flagD > flagA:
	print('Danik')
else:
	print('Friendship')


def game(x, y):
	a = d = 0
	for i in range(0, x):
		if y[i] == 'D':
			d += 1
		else:
			a += 1
	return 'Anton' if a > d else 'Danik' if a < d else 'Friendship'
x = int(input())
y = input()
print(game(x, y))


n = int(input())
s = input()
acnt = 0
dcnt = 0
for i in range(0, n):
	if s[i] == 'D':
		dcnt = dcnt + 1
	elif s[i] == 'A':
		acnt = acnt + 1
if dcnt > acnt:
	print('Danik')
elif acnt > dcnt:
	print('Anton')
else:
	print('Friendship')


n = int(input()) / 2
s = input().count('A')
print([['Friendship', 'Danik'][s < n], 'Anton'][s > n])


i = input()
s = input()
A = 0
B = 0
for j in s:
	if j == 'A':
		A = A + 1
	else:
		B = B + 1
if A > B:
	print('Anton')
elif A < B:
	print('Danik')
else:
	print('Friendship')


games = int(input())
results = input()
a = 0
d = 0
for r in results:
	if r == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


t = input()
s = list(str(input()))
a = 0
d = 0
for i in s.copy():
	if i == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
a = 0
d = 0
for char in s:
	a += int(char == 'A')
	d += int(char == 'D')
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


HalfGames = int(input()) // 2
score = input()
A = 0
D = 0
for c in score:
	if c == 'A':
		A += 1
	else:
		D += 1
	if A > HalfGames:
		print('Anton')
		break
	if D > HalfGames:
		print('Danik')
		break
if A == D:
	print('Friendship')


t = int(input())
s = input()
a = 0
d = 0
for i in range(0, len(s)):
	if s[i] == 'A':
		a += 1
	elif s[i] == 'D':
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


i = int(input())
ii = input()
ii = list(ii)
c = ii.count('A')
d = i - c
if c > d:
	print('Anton')
elif c < d:
	print('Danik')
else:
	print('Friendship')


games = int(input())
s = input()
anton = 0
danik = 0
for i in range(games):
	if s[i] == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
if danik > anton:
	print('Danik')
if anton == danik:
	print('Friendship')


inp = int(input())
inp1 = input()
count1 = 0
c2 = 0
for i in inp1:
	if i == 'A':
		count1 = count1 + 1
	elif i == 'D':
		c2 = c2 + 1
if count1 > c2:
	print('Anton')
elif c2 > count1:
	print('Danik')
else:
	print('Friendship')


s = int(input())
st = input().upper()
c = st.count('A')
d = st.count('D')
if c == d:
	print('Friendship')
elif c > d:
	print('Anton')
else:
	print('Danik')


import sys
n = int(sys.stdin.readline().split()[0])
s = sys.stdin.readline()[:-1]
anton = s.count('A')
danik = s.count('D')
if anton == danik:
	print('Friendship')
elif anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')


n = int(input())
x = input()
a = x.count('A')
res = 'Friendship'
if a > n // 2:
	res = 'Anton'
elif a < n / 2:
	res = 'Danik'
print(res)


numb = int(input())
result = str(input())
if result.count('D') > result.count('A'):
	print('Danik')
elif result.count('D') == result.count('A'):
	print('Friendship')
else:
	print('Anton')


n = int(input())
inp = list(input())
if inp.count('A') > inp.count('D'):
	print('Anton')
elif inp.count('A') < inp.count('D'):
	print('Danik')
else:
	print('Friendship')


import sys
n = sys.stdin.readline()[:-1]
elements = sys.stdin.readline()[:-1]
anton_count = elements.count('A')
danik_count = elements.count('D')
if anton_count > danik_count:
	print('Anton')
elif danik_count > anton_count:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
i = 0
acount = 0
dcount = 0
for i in range(n):
	if s[i] == 'A':
		acount = acount + 1
	elif s[i] == 'D':
		dcount = dcount + 1
if acount > dcount:
	print('Anton')
elif dcount > acount:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = sum(map(lambda x: 1 if x == 'A' else 0, input()))
if s * 2 == n:
	print('Friendship')
elif s * 2 < n:
	print('Danik')
else:
	print('Anton')


n = int(input())
s = input()
A = 0
D = 0
for si in s:
	if si == 'A':
		A += 1
	else:
		D += 1
if A == D:
	print('Friendship')
elif A > D:
	print('Anton')
else:
	print('Danik')


n = int(input())
line = input().strip()
ant = line.count('A')
dnt = line.count('D')
if ant > dnt:
	print('Anton')
elif ant < dnt:
	print('Danik')
else:
	print('Friendship')


n = int(input())
str1 = str(input())
a = 0
d = 0
for k in str1:
	if k == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
k = input().count('A')
print([['Friendship', 'Danik'][k < n - k], 'Anton'][k > n - k])


num = int(input())
winners = list(input())
count_a = 0
count_d = 0
for winner in winners:
	if winner == 'A':
		count_a += 1
	else:
		count_d += 1
if count_a > count_d:
	print('Anton')
elif count_d > count_a:
	print('Danik')
else:
	print('Friendship')


from sys import stdin
g = stdin.readline()
g = int(g)
w = stdin.readline()
a = w.count('A')
d = g - a
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


intt = input()
input = input()
if input.count('A') > input.count('D'):
	print('Anton')
elif input.count('A') < input.count('D'):
	print('Danik')
else:
	print('Friendship')


i = input
n = float(i())
s = i()
c = s.count('A')
if c > n / 2:
	print('Anton')
elif c == n / 2:
	print('Friendship')
else:
	print('Danik')


a = int(input())
d = input()
s1 = 0
s2 = 0
for q in range(a):
	if d[q] == 'A':
		s1 += 1
	if d[q] == 'D':
		s2 += 1
if s1 > s2:
	print('Anton')
elif s2 > s1:
	print('Danik')
else:
	print('Friendship')


n = input()
result = input()
l = []
for i in result:
	l.append(i)
x = l.count('A')
y = l.count('D')
if x > y:
	print('Anton')
elif y > x:
	print('Danik')
elif x == y:
	print('Friendship')


n = int(input())
play = input()
a = play.count('A')
d = n - a
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


N = int(input())
scores = input()
Score2Anton = {'A': 1, 'D': 0}
i = 0
score = 0
u = True
Dscore = N
while i < N and u:
	score += Score2Anton[scores[i]]
	Dscore = Dscore - (Score2Anton[scores[i]] + 1) % 2
	Antonwins = score > N / 2
	Danikwins = Dscore < N / 2
	u = u and (not Antonwins)
	u = u and (not Danikwins)
	i += 1
if Antonwins:
	print('Anton')
elif Danikwins:
	print('Danik')
else:
	print('Friendship')


n = int(input())
X = input()
counter1 = 0
counter2 = 0
for i in X:
	if i == 'A':
		counter1 += 1
	elif i == 'D':
		counter2 += 1
if counter1 > counter2:
	print('Anton')
elif counter2 > counter1:
	print('Danik')
else:
	print('Friendship')


input()
n = input()
print('Anton' if n.count('A') > n.count('D') else 'Danik' if n.count('A') < n.count('D') else 'Friendship')


n = int(input())
string = input()
counter = 0
for x in range(0, n):
	if string[x] == 'D':
		counter += 1
if counter == n / 2:
	print('Friendship')
else:
	print('Danik' if counter > n / 2 else 'Anton')


a = int(input())
n = input()
count = [0, 0]
for x in n:
	if x == 'A':
		count[0] += 1
	else:
		count[1] += 1
if count[0] > count[1]:
	print('Anton')
elif count[0] < count[1]:
	print('Danik')
else:
	print('Friendship')


n = int(input())
score = 0
for char in input():
	if char == 'A':
		score += 1
	else:
		score -= 1
if score > 0:
	print('Anton')
elif score < 0:
	print('Danik')
else:
	print('Friendship')


x = input
y = int(x())
p = x().count('A') * 2
print([['Friendship', 'Danik'][p < y], 'Anton'][p > y])


number_of_games = int(input())
letters = input()
score_a = 0
score_d = 0
for letter in letters:
	if letter == 'A':
		score_a += 1
	elif letter == 'D':
		score_d += 1
if score_a > score_d:
	print('Anton')
elif score_d > score_a:
	print('Danik')
else:
	print('Friendship')


input_1 = int(input())
input_2 = str(input())
d = 0
a = 0
for i in range(len(input_2)):
	if input_2[i] == 'A':
		a += 1
	if input_2[i] == 'D':
		d += 1
if d > a:
	print('Danik')
if a > d:
	print('Anton')
if d == a:
	print('Friendship')


a = input()
b = input()
for i in range(len(b)):
	if b.count('A') > b.count('D'):
		print('Anton')
		break
	elif b.count('A') < b.count('D'):
		print('Danik')
		break
	else:
		print('Friendship')
		break


input()
s = input()
ca = s.count('A')
cd = s.count('D')
if ca > cd:
	print('Anton')
elif ca < cd:
	print('Danik')
else:
	print('Friendship')


import math
import re
a = int(input())
b = input()
if len(b.replace('A', '')) == len(b.replace('D', '')):
	print('Friendship')
elif len(b.replace('D', '')) <= math.floor(len(b) / 2):
	print('Danik')
else:
	print('Anton')


b = input()
a = input()
set(a)
n = 0
for i in range(len(a)):
	if a[i] == 'D':
		n += 1
	else:
		n -= 1
if n > 0:
	print('Danik')
elif n == 0:
	print('Friendship')
else:
	print('Anton')


n = int(input())
games = input()
gamesA = len(games.replace('D', ''))
gamesD = n - gamesA
if gamesA == gamesD:
	print('Friendship')
else:
	print('Anton' if gamesA > gamesD else 'Danik')


import sys
import math
n = int(input())
s = input()
anton = 0
danik = 0
for i in s:
	if i == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


def chess(string):
	a = 0
	d = 0
	for i in range(len(string)):
		if string[i] == 'D':
			d = d + 1
		elif string[i] == 'A':
			a = a + 1
	if a > d:
		return 'Anton'
	elif d > a:
		return 'Danik'
	else:
		return 'Friendship'
n = int(input())
string = input()
print(chess(string))


t = int(input())
s1 = str(input())
s = list(s1)
a = 0
l = 0
for i in range(0, len(s)):
	if s[i] == 'D':
		l = l + 1
	elif s[i] == 'A':
		a = a + 1
if l > a:
	print('Danik')
elif a > l:
	print('Anton')
else:
	print('Friendship')


n = input()
g = list(input())
nr = 0
for i in g:
	if i == 'A':
		nr += 1
	else:
		nr -= 1
if nr > 0:
	print('Anton')
elif nr < 0:
	print('Danik')
else:
	print('Friendship')


games_numbers = int(input())
games = list(map(str, input().upper()))
a_counter = 0
d_counter = 0
for game in games:
	if game == 'D':
		d_counter += 1
	else:
		a_counter += 1
if d_counter > a_counter:
	print('Danik')
elif d_counter < a_counter:
	print('Anton')
else:
	print('Friendship')


n = int(input())
s = input()
a = 0
d = 0
i = 0
while i < n:
	if s[i] == 'D':
		d += 1
	else:
		a += 1
	i += 1
if d > a:
	print('Danik')
if a > d:
	print('Anton')
if a == d:
	print('Friendship')


t = input()
n = input()
if n.count('A') > n.count('D'):
	print('Anton')
elif n.count('A') < n.count('D'):
	print('Danik')
elif n.count('A') == n.count('D'):
	print('Friendship')


n = int(input())
s = input()
x = s.count('A')
y = len(s) - x
print(('Danik', 'Anton', 'Friendship')[2 if x == y else x > y])


input()
s = input()
A = s.count('A')
D = s.count('D')
print('Friendship' if A == D else 'Anton' if A > D else 'Danik')


n = int(input())
s = input()
ca = 0
cd = 0
for i in range(len(s)):
	if s[i] == 'A':
		ca += 1
	else:
		cd += 1
if ca > cd:
	print('Anton')
elif cd > ca:
	print('Danik')
else:
	print('Friendship')


n = int(input())
ch = input()
a = ch.count('A')
b = ch.count('D')
if a > b:
	print('Anton')
elif b > a:
	print('Danik')
else:
	print('Friendship')


mumber_play = int(input())
party = input()
anton = 0
danik = 0
for i in range(mumber_play):
	if party[i] == 'A':
		anton += 1
	elif party[i] == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
else:
	print('Friendship')


enter = int(input())
sio = input()
p = 0
u = 0
for i in range(0, enter):
	if sio[i] == 'A':
		p = p + 1
	if sio[i] == 'D':
		u = u + 1
if p > u:
	print('Anton')
if p < u:
	print('Danik')
if p == u:
	print('Friendship')


n = int(input())
m = input()
(Ac, Dc) = (0, 0)
for i in range(len(m)):
	if m[i] == 'A':
		Ac += 1
	elif m[i] == 'D':
		Dc += 1
if Ac > Dc:
	print('Anton')
elif Ac < Dc:
	print('Danik')
else:
	print('Friendship')


number_of_games = input()
games_res = input()
Anton = 0
Danik = 0
for i in range(int(number_of_games)):
	if games_res[i] == 'A':
		Anton += 1
	else:
		Danik += 1
if Anton > Danik:
	print('Anton')
elif Danik > Anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
m = []
a = 0
b = 0
for i in range(len(s)):
	if s[i] == 'A':
		a += 1
	else:
		b += 1
if a > b:
	print('Anton')
elif a < b:
	print('Danik')
if a == b:
	print('Friendship')


n = int(input())
s = input()
an = dk = 0
for x in s:
	if x == 'A':
		an += 1
	else:
		dk += 1
if an == dk:
	print('Friendship')
elif an > dk:
	print('Anton')
else:
	print('Danik')


inp1 = list(map(int, input().rstrip().split()))
inp2 = input().upper()
c1 = c2 = 0
for i in inp2:
	if i == 'A':
		c1 += 1
	else:
		c2 += 1
if c1 > c2:
	print('Anton')
elif c1 < c2:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = str(input())
count = 0
count1 = 0
for i in s:
	if i == 'A':
		count += 1
	elif i == 'D':
		count1 += 1
if count > count1:
	print('Anton')
elif count < count1:
	print('Danik')
else:
	print('Friendship')


game = int(input())
result = input()
countA = 0
countD = 0
for x in result:
	if x == 'A':
		countA += 1
	else:
		countD += 1
if countA > countD:
	print('Anton')
elif countD > countA:
	print('Danik')
else:
	print('Friendship')


games = int(input())
string = list(map(str, input()))
anton = 0
danik = 0
for i in range(games):
	if string[i] == 'A':
		anton += 1
	elif string[i] == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
elif anton == danik:
	print('Friendship')


n = int(input())
s = input()
l = []
i = 0
while i < n:
	l.append(s[i])
	i += 1
(sum, sum1) = (0, 0)
for i in l:
	if i == 'A':
		sum += 1
	elif i == 'D':
		sum1 += 1
	else:
		sum = sum
if sum > sum1:
	print('Anton')
elif sum1 > sum:
	print('Danik')
else:
	print('Friendship')


len = input()
seq = input()
As = 0
Ds = 0
for c in seq:
	if c == 'A':
		As += 1
	else:
		Ds += 1
if As > Ds:
	print('Anton')
elif As == Ds:
	print('Friendship')
else:
	print('Danik')


x = int(input())
s = input()
anton = 0
danik = 0
for char in s:
	if char == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


size = int(input())
m = input()
if m.count('A') > m.count('D'):
	print('Anton')
elif m.count('A') < m.count('D'):
	print('Danik')
else:
	print('Friendship')


input()
s = input()
print('Anton' * (s.count('A') > s.count('D')) + 'Danik' * (s.count('A') < s.count('D')) + 'Friendship' * (s.count('A') == s.count('D')))


n = int(input())
s = input()
c1 = 0
c2 = 0
for i in s:
	if i == 'A':
		c1 = c1 + 1
	else:
		c2 = c2 + 1
if c1 > c2:
	print('Anton')
elif c2 > c1:
	print('Danik')
else:
	print('Friendship')


import collections
n = int(input())
g = list(input())
a = collections.Counter(g)['A']
d = collections.Counter(g)['D']
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


try:
	x = int(input())
	s = input()
	c = 0
	b = 0
	for i in range(x):
		if s[i] == 'A':
			c += 1
		else:
			b += 1
	if c == b:
		print('Friendship')
	elif c > b:
		print('Anton')
	else:
		print('Danik')
except:
	pass


a = int(input())
b = input()
count1 = 0
count2 = 0
for i in b:
	if i == 'A':
		count1 = count1 + 1
	else:
		count2 = count2 + 1
if count1 > count2:
	print('Anton')
if count1 == count2:
	print('Friendship')
if count1 < count2:
	print('Danik')


x = int(input())
s = str(input().upper())
p = s.count('A')
c = s.count('D')
if p > c:
	print('Anton')
elif c > p:
	print('Danik')
else:
	print('Friendship')


n = int(input())
g = input()
x = g.count('A')
y = g.count('D')
if x > y:
	print('Anton')
elif x < y:
	print('Danik')
else:
	print('Friendship')


import sys

def mayor(c):
	c = c.strip()
	d = 0
	a = 0
	for i in c:
		if i == 'D':
			d += 1
		else:
			a += 1
	if a > d:
		print('Anton')
	elif a < d:
		print('Danik')
	else:
		print('Friendship')
for line in sys.stdin:
	a = line
	c = sys.stdin.readline()
	mayor(c)


n = int(input())
l = list(input())
(ant, dan) = (0, 0)
for ele in l:
	if ele == 'A':
		ant += 1
	else:
		dan += 1
if ant > dan:
	print('Anton')
elif ant < dan:
	print('Danik')
elif ant == dan:
	print('Friendship')


n = int(input())
string = input()
danik = 0
anton = 0
for value in string:
	if value == 'D':
		danik += 1
	else:
		anton += 1
if anton > danik:
	print('Anton')
elif anton == danik:
	print('Friendship')
else:
	print('Danik')


n = input()
lst = input()
(cnt1, cnt2) = (len([x for x in lst if x == 'A']), len([x for x in lst if x == 'D']))
if cnt1 > cnt2:
	print('Anton')
elif cnt1 < cnt2:
	print('Danik')
else:
	print('Friendship')


a = int(input())
b = list(input())
count = 0
count1 = 0
for j in range(0, a):
	if b[j] == 'A':
		count += 1
	elif b[j] == 'D':
		count1 += 1
if count > count1:
	print('Anton')
elif count1 > count:
	print('Danik')
elif count1 == count:
	print('Friendship')


games = int(input())
winners = input()
winner_count = {'A': 0, 'D': 0}
for winner in winners:
	winner_count[winner] += 1
if winner_count['A'] == winner_count['D']:
	print('Friendship')
elif winner_count['A'] > winner_count['D']:
	print('Anton')
else:
	print('Danik')


games = int(input())
anton = 0
danik = 0
wins = input()
for win in wins:
	if win == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
d = 0
e = 0
for i in s:
	if i == 'A':
		d += 1
	else:
		e += 1
if d > e:
	print('Anton')
elif d < e:
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = input()
z = a.count('D')
zz = a.count('A')
if zz == z:
	print('Friendship')
elif zz > z:
	print('Anton')
else:
	print('Danik')


def prog():
	n = int(input())
	s = input()
	a = s.count('A')
	if a > n - a:
		print('Anton')
	if a < n - a:
		print('Danik')
	if a == n - a:
		print('Friendship')
prog()


n = int(input())
s = input()
d = 0
for w in s:
	if w == 'D':
		d += 1
if d > n / 2:
	print('Danik')
elif d < n / 2:
	print('Anton')
else:
	print('Friendship')


x = input()
matches = input()
anton = 0
danik = 0
for i in matches:
	if i == 'A':
		anton = anton + 1
	else:
		danik = danik + 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
na = input().count('A')
if na > n / 2:
	print('Anton')
elif na == n / 2:
	print('Friendship')
else:
	print('Danik')


gierki = int(input())
wynik = input()
anton = 0
danik = 0
for i in range(gierki):
	if ord(wynik[i]) > ord('A'):
		danik += 1
	else:
		anton += 1
if anton > danik:
	print('Anton')
elif anton == danik:
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = input()
s1 = s.count('A')
if s1 >= n // 2 + 1:
	print('Anton')
elif n - s1 >= n // 2 + 1:
	print('Danik')
else:
	print('Friendship')


input()
party = input()
if party.count('A') == party.count('D'):
	print('Friendship')
elif party.count('A') > party.count('D'):
	print('Anton')
else:
	print('Danik')


x = int(input())
y = input()
d = 0
for i in y:
	if i == 'D':
		d = d + 1
if d > x / 2:
	print('Danik')
elif d == x / 2:
	print('Friendship')
else:
	print('Anton')


n = int(input())
s = input()
a = 0
d = 0
for c in s:
	if c == 'A':
		a += 1
	else:
		d += 1
	if a > int(n / 2) or d > int(n / 2):
		break
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
win = input()
count_anton = 0
count_danik = 0
for ele in win:
	if ele == 'A':
		count_anton += 1
	elif ele == 'D':
		count_danik += 1
if count_danik > count_anton:
	print('Danik')
elif count_anton > count_danik:
	print('Anton')
else:
	print('Friendship')


n = int(input())
j = str(input())
AntonW = 0
DanikW = 0
for i in range(0, n):
	if j[i] == 'A':
		AntonW = AntonW + 1
	else:
		DanikW = DanikW + 1
if AntonW > DanikW:
	print('Anton')
elif DanikW > AntonW:
	print('Danik')
else:
	print('Friendship')


value = input()
values = input()
if values.count('A') > values.count('D'):
	print('Anton')
elif values.count('A') < values.count('D'):
	print('Danik')
else:
	print('Friendship')


try:
	n = int(input())
	s = input()
	anton = 0
	danik = 0
	for i in range(0, n):
		if s[i] == 'A':
			anton = anton + 1
		else:
			danik = danik + 1
	if anton > danik:
		print('Anton')
	elif anton == danik:
		print('Friendship')
	else:
		print('Danik')
except:
	pass


a = int(input())
b = str(input())
c = list(b)
i = 0
j = 0
for k in c:
	if k == 'A':
		i += 1
	else:
		j += 1
if i > j:
	print('Anton')
elif i < j:
	print('Danik')
elif i == j:
	print('Friendship')


n = int(input())
x = input()
an = x.count('A')
d = x.count('D')
if d > an:
	print('Danik')
elif an > d:
	print('Anton')
else:
	print('Friendship')


n = int(input())
s = list(input().upper())
a = s.count('A')
b = s.count('D')
if a < b:
	print('Danik')
elif a == b:
	print('Friendship')
else:
	print('Anton')


I = input
n = int(I())
a = I().count('A') * 2
print([['Friendship', 'Danik'][a < n], 'Anton'][a > n])


t = int(input())
s = list(input())
l = s.count('A')
m = s.count('D')
if l > m:
	print('Anton')
elif l < m:
	print('Danik')
else:
	print('Friendship')


n = int(input())
winString = input()
countA = winString.count('A')
countD = winString.count('D')
if countA > countD:
	print('Anton')
elif countA < countD:
	print('Danik')
else:
	print('Friendship')


n = int(input())
S = input()
k1 = S.count('A')
k2 = S.count('D')
if k1 > k2:
	print('Anton')
elif k1 < k2:
	print('Danik')
else:
	print('Friendship')


x = int(input())
n = input()
s = 0
A = 0
D = 0
while s < x:
	if n[s] == 'A':
		A += 1
	else:
		D += 1
	s += 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


n = input()
l = [c for c in input()]
c = 0
for a in l:
	if a == 'A':
		c += 1
	elif a == 'D':
		c -= 1
if c == 0:
	print('Friendship')
elif c > 0:
	print('Anton')
else:
	print('Danik')


n = int(input())
s = input()
s = s.upper()
s1 = 'A'
s2 = 'D'
c1 = s.count(s1)
c2 = s.count(s2)
if c1 > c2:
	print('Anton')
elif c1 == c2:
	print('Friendship')
else:
	print('Danik')


def winner(n, str):
	acount = 0
	dcount = 0
	for ch in str:
		if ch == 'A':
			acount += 1
		elif ch == 'D':
			dcount += 1
	if acount > dcount:
		print('Anton')
	elif dcount > acount:
		print('Danik')
	else:
		print('Friendship')
n = int(input())
str = input()
winner(n, str)


n = eval(input())
game = input()
anton = 0
danik = 0
for winner in game:
	if winner == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


num = int(input())
strr = input()
anton = 0
danik = 0
for i in range(num):
	if strr[i] == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
if danik > anton:
	print('Danik')
if anton == danik:
	print('Friendship')


n = int(input())
s = input()
(an, da) = (0, 0)
for i in s:
	if i == 'A':
		an += 1
	else:
		da += 1
if an > da:
	print('Anton')
elif da > an:
	print('Danik')
else:
	print('Friendship')


n = int(input())
games = input()
acount = games.count('A')
dcount = games.count('D')
if acount > dcount:
	print('Anton')
if acount < dcount:
	print('Danik')
if acount == dcount:
	print('Friendship')


t = int(input())
n = input().lower()
if n.count('a') > n.count('d'):
	print('Anton')
elif n.count('a') < n.count('d'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
text = input().upper()
c1 = text.count('A')
c2 = text.count('D')
if c1 > c2:
	print('Anton')
elif c2 > c1:
	print('Danik')
else:
	print('Friendship')


numberOfGames = input('')
scores = list(input(''))
AntonScore = 0
DanikScore = 0
for score in scores:
	if score == 'A':
		AntonScore = AntonScore + 1
	elif score == 'D':
		DanikScore = DanikScore + 1
if AntonScore > DanikScore:
	print('Anton')
	quit()
elif DanikScore > AntonScore:
	print('Danik')
	quit()
elif AntonScore == DanikScore:
	print('Friendship')
	quit()


n = int(input())
a = input()
countA = 0
countD = 0
for i in a:
	if i == 'A':
		countA += 1
	else:
		countD += 1
if countA > countD:
	print('Anton')
elif countA < countD:
	print('Danik')
else:
	print('Friendship')


n = int(input())
str = input()
n1 = 0
n2 = 0
for i in str:
	if i == 'A':
		n1 = n1 + 1
	else:
		n2 = n2 + 1
if n1 > n2:
	print('Anton')
elif n1 < n2:
	print('Danik')
else:
	print('Friendship')


import sys
n = 0
dCo = 0
aCo = 0
for l in sys.stdin:
	if n == 0:
		n = n + 1
	else:
		for k in l.strip():
			if k == 'D':
				dCo = dCo + 1
			elif k == 'A':
				aCo = aCo + 1
		break
if dCo > aCo:
	print('Danik')
elif aCo > dCo:
	print('Anton')
else:
	print('Friendship')


(n, s) = (input(), input())
print(['Anton', 'Danik', 'Friendship'][2 * (s.count('A') == s.count('D')) + 1 * (s.count('D') > s.count('A'))])


n = int(input())
l = list(map(str, input()))
ca = 0
cd = 0
for i in range(0, len(l)):
	if l[i] == 'A':
		ca = ca + 1
	else:
		cd = cd + 1
if ca > cd:
	print('Anton')
elif cd > ca:
	print('Danik')
elif ca == cd:
	print('Friendship')


NumOfGames = int(input())
res = input()
(A, D) = (0, 0)
count = {'A': 0, 'D': 0}
for r in res:
	count[r] = count[r] + 1
if count['A'] == count['D']:
	print('Friendship')
else:
	print('Anton' if count['A'] > count['D'] else 'Danik')


n = int(input())
string = str(input())
arr = [str(i) for i in str(string)]
cnt1 = cnt2 = 0
for i in arr:
	if i == 'D':
		cnt1 += 1
	else:
		cnt2 += 1
if cnt1 < cnt2:
	print('Anton')
elif cnt2 < cnt1:
	print('Danik')
else:
	print('Friendship')


a = input()
b = input()
print([['Anton', 'Danik'][b.count('A') < b.count('D')], 'Friendship'][b.count('A') == b.count('D')])


n = int(input())
s = input().count('A')
if s == n // 2 and n % 2 == 0:
	print('Friendship')
elif s > n // 2:
	print('Anton')
else:
	print('Danik')


a = int(input())
b = str(input())
cp = 0
cc = 0
for i in range(len(b)):
	if b[i] == 'A':
		cp += 1
	else:
		cc += 1
if cp > cc:
	print('Anton')
elif cp < cc:
	print('Danik')
else:
	print('Friendship')


def main(str):
	count = 0
	for i in range(len(str)):
		if str[i] == 'A':
			count += 1
	if count > len(str) - count:
		return 'Anton'
	elif count < len(str) - count:
		return 'Danik'
	else:
		return 'Friendship'
num = int(input())
ans = main(input())
print(ans)


num_games = int(input())
who = input()
Anton = who.count('A')
if Anton > num_games - Anton:
	print('Anton')
elif Anton < num_games - Anton:
	print('Danik')
else:
	print('Friendship')


def determine_winner(outcomes):
	anton_wins = outcomes.count('A')
	danik_wins = outcomes.count('D')
	if anton_wins > danik_wins:
		return 'Anton'
	elif danik_wins > anton_wins:
		return 'Danik'
	else:
		return 'Friendship'

def main():
	num_games_played = int(input())
	outcomes = list(input())
	win_outcome = determine_winner(outcomes)
	print(win_outcome)
main()


nb = input()
read = input()
a = d = f = 0
for i in read:
	if i == 'A':
		a = a + 1
	if i == 'D':
		d = d + 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
winners = input()
anton = winners.count('A')
danik = n - anton
if anton == danik:
	print('Friendship')
elif anton > danik:
	print('Anton')
else:
	print('Danik')


num_games = int(input())
game_win_order = str(input())

def parser(num_games, game_win_order):
	A_wins = 0
	D_wins = 0
	for current_letter in game_win_order:
		if current_letter == 'A':
			A_wins += 1
		else:
			D_wins += 1
	if A_wins > D_wins:
		print('Anton')
	elif A_wins < D_wins:
		print('Danik')
	else:
		print('Friendship')
parser(num_games, game_win_order)


n = int(input())
t = input().count('A')
print(['Danik', 'Anton', 'Friendship'][(t >= n - t) + (t == n - t)])


def main():
	n = int(input())
	a = list(input())
	c = a.count('A')
	c1 = a.count('D')
	if c > c1:
		print('Anton')
	elif c1 > c:
		print('Danik')
	else:
		print('Friendship')
main()


num = int(input())
str = input()
if str.count('A') > num / 2:
	print('Anton')
elif str.count('D') > num / 2:
	print('Danik')
else:
	print('Friendship')


games = int(input())
wins = None
scores = list(map(str, input()))
if scores.count('A') == scores.count('D'):
	print('Friendship')
elif scores.count('A') > scores.count('D'):
	print('Anton')
else:
	print('Danik')


s = int(input())
n = input()
q = 0
p = 0
for i in range(0, len(n)):
	if n[i] == 'A':
		q += 1
	else:
		p += 1
if q > p:
	print('Anton')
if p > q:
	print('Danik')
if q == p:
	print('Friendship')


n = int(input())
s = input()
a = 0
d = 0
for elem in s:
	if elem == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = list(input())
ac = s.count('A')
dc = s.count('D')
if ac == dc:
	print('Friendship')
elif ac > dc:
	print('Anton')
else:
	print('Danik')


n = int(input())
string = str(input())
count = 0
count1 = 0
for i in range(0, n):
	if string[i] == 'D':
		count = count + 1
	else:
		count1 = count1 + 1
if count == count1:
	print('Friendship')
elif count1 > count:
	print('Anton')
else:
	print('Danik')


n = int(input())
s = str(input())
(count_1, count_2) = (0, 0)
for i in s:
	if i == 'A':
		count_1 += 1
	else:
		count_2 += 1
if count_1 == count_2:
	print('Friendship')
elif count_1 > count_2:
	print('Anton')
else:
	print('Danik')


x = input()
a = input()
b = a.count('A')
c = len(a) - b
if b > c:
	print('Anton')
elif b == c:
	print('Friendship')
else:
	print('Danik')


t = int(input())
a = sum((_ == 'A' for _ in input()))
if a == t / 2:
	print('Friendship')
	exit()
print('Anton' if a > t - a else 'Danik')


n = input()
n = input()
(ca, cd) = (0, 0)
for i in n:
	if i == 'A':
		ca += 1
	else:
		cd += 1
if ca > cd:
	print('Anton')
elif cd > ca:
	print('Danik')
else:
	print('Friendship')


y = int(input())
x = input()
x = list(x)
(count, count1) = (0, 0)
for i in range(y):
	if x[i] == 'A':
		count = count + 1
	elif x[i] == 'D':
		count1 = count1 + 1
if count > count1:
	print('Anton')
elif count < count1:
	print('Danik')
else:
	print('Friendship')


n = input()
s = input()
x = list(map(lambda c: 1 if c == 'A' else -1, s))
print('Anton' if sum(x) > 0 else 'Danik' if sum(x) < 0 else 'Friendship')


n = input()
str1 = input()
a = str1.count('A')
d = str1.count('D')
if a > d:
	print('Anton')
elif a == d:
	print('Friendship')
elif a < d:
	print('Danik')


input()
results = input()
A = results.count('A')
D = results.count('D')
print('Anton' if A > D else 'Danik' if D > A else 'Friendship')


n = int(input())
w = input().count('A')
if w > n - w:
	print('Anton')
elif w == n - w:
	print('Friendship')
else:
	print('Danik')


no_of_games = int(input())
result_each = input()
result = 0
for x in result_each:
	if x == 'A':
		result += 1
	else:
		result -= 1
if result > 0:
	print('Anton')
elif result < 0:
	print('Danik')
else:
	print('Friendship')


x = int(input())
name = input()
acount = 0
dcount = 0
for name in name:
	if name == 'A':
		acount += 1
	elif name == 'D':
		dcount += 1
if acount > dcount:
	print('Anton')
elif dcount > acount:
	print('Danik')
elif acount == dcount:
	print('Friendship')


(lambda n, s: print('Anton' if s.count('A') > s.count('D') else 'Danik' if s.count('D') > s.count('A') else 'Friendship'))(input(), input())


a = int(input())
l = list(input())
c = l.count('A')
b = l.count('D')
if c > b:
	print('Anton')
elif c < b:
	print('Danik')
else:
	print('Friendship')


games_played = int(input())
games_won = list(input())
games_won = games_won[:games_played + 1]
if games_won.count('A') > games_won.count('D'):
	print('Anton')
elif games_won.count('A') < games_won.count('D'):
	print('Danik')
else:
	print('Friendship')


import sys
n = int(input())
a = input()
ca = 0
cd = 0
for x in a:
	if x == 'A':
		ca += 1
	else:
		cd += 1
if ca > cd:
	print('Anton')
elif ca < cd:
	print('Danik')
else:
	print('Friendship')


input_s = input()
input_l = input()
a = 0
d = 0
for i in range(len(input_l)):
	if input_l[i] == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = input()
s = input()
Dic_s = {'D': 0, 'A': 0}
for char in s:
	Dic_s[char] += 1
if Dic_s['D'] > Dic_s['A']:
	print('Danik')
elif Dic_s['D'] < Dic_s['A']:
	print('Anton')
else:
	print('Friendship')


t = int(input())
s = input()
s.upper()
a = []
b = []
for i in range(t):
	if s[i] == 'A':
		a.append(s[i])
	else:
		b.append(s[i])
if len(a) > len(b):
	print('Anton')
elif len(a) == len(b):
	print('Friendship')
else:
	print('Danik')


n = int(input())
if n < 1 or n > 10 ** 5:
	raise SystemExit
s = str(input())
if len(s) != n:
	raise SystemExit
for i in s:
	if i != 'D' and i != 'A':
		raise SystemExit
a = 0
d = 0
for i in s:
	if i == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
elif a == d:
	print('Friendship')


n = int(input())
data = list(input())
print('Friendship' if data.count('A') == data.count('D') else 'Anton' if data.count('A') > data.count('D') else 'Danik')


import sys
n = int(sys.stdin.readline())
outcomes = sys.stdin.readline()
anton_wins = outcomes.count('A')
danik_wins = outcomes.count('D')
if anton_wins > danik_wins:
	print('Anton')
elif danik_wins > anton_wins:
	print('Danik')
else:
	print('Friendship')


q = int(input())
z = input()
an = z.count('A')
da = z.count('D')
if an == da:
	print('Friendship')
elif an > da:
	print('Anton')
else:
	print('Danik')


(input(), print(['Danik', 'Friendship', 'Anton'][(lambda x: (x > 0) - (x < 0))(sum(((c == 'A') * 2 - 1 for c in input()))) + 1]))


blah = int(input())
s = input()
if s.count('A') > s.count('D'):
	print('Anton')
elif s.count('A') < s.count('D'):
	print('Danik')
else:
	print('Friendship')


h = input().rstrip().split()[-1]
arr = ''.join(list(map(str, input().rstrip().split())))
if arr.count('A') > arr.count('D'):
	print('Anton')
elif arr.count('A') < arr.count('D'):
	print('Danik')
else:
	print('Friendship')


def AntonAndDanik():
	n = int(input())
	games = input().strip()
	anton = games.count('A')
	danik = n - anton
	if anton > danik:
		return 'Anton'
	elif danik > anton:
		return 'Danik'
	else:
		return 'Friendship'
a = AntonAndDanik()
print(a)


input()
list1 = [str(a) for a in input()]
anton = list1.count('A')
danik = list1.count('D')
if anton == danik:
	print('Friendship')
elif anton > danik:
	print('Anton')
else:
	print('Danik')


num_games = int(input())
game_seq = input()
print('Anton' if game_seq.count('A') > game_seq.count('D') else 'Danik' if game_seq.count('D') > game_seq.count('A') else 'Friendship')


part_amount = input()
game_count = input()
anton_wins = 0
danik_wins = 0
for i in game_count:
	if i == 'A':
		anton_wins = anton_wins + 1
	elif i == 'D':
		danik_wins = danik_wins + 1
if anton_wins > danik_wins:
	print('Anton')
elif danik_wins > anton_wins:
	print('Danik')
else:
	print('Friendship')


m = int(input())
x = input()
y = len(x)
z = x.count('A')
if z > y / 2:
	print('Anton')
elif z < y / 2:
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = input().replace('D', '')
if 2 * len(a) < n:
	print('Danik')
elif 2 * len(a) > n:
	print('Anton')
else:
	print('Friendship')


(n, games) = (input(), input())
anton = games.count('A')
danik = len(games) - anton
if anton > danik:
	print('Anton')
elif anton == danik:
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = input()
if n >= 1 and n <= 100000:
	if s.count('A') > s.count('D'):
		print('Anton')
	elif s.count('A') < s.count('D'):
		print('Danik')
	elif s.count('A') == s.count('D'):
		print('Friendship')


n = input()
s = input()
(A, B) = (0, 0)
for x in range(0, len(s)):
	if s[x] == 'A':
		A = A + 1
	else:
		B = B + 1
if A > B:
	print('Anton')
elif B > A:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
count_a = 0
count_d = 0
for i in s:
	if i == 'A':
		count_a += 1
	else:
		count_d += 1
if count_a > count_d:
	print('Anton')
elif count_d > count_a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
res = input()
w = 0
for i in range(n):
	if res[i] == 'A':
		w += 1
	else:
		w -= 1
if w > 0:
	print('Anton')
elif w < 0:
	print('Danik')
else:
	print('Friendship')


try:
	k = int(input())
	l = input()
	if l.count('D') > l.count('A'):
		print('Danik')
	if l.count('D') < l.count('A'):
		print('Anton')
	if l.count('D') == l.count('A'):
		print('Friendship')
except:
	pass


n = int(input())
b = input()
pA = 0
pD = 0
for i in range(n):
	if b[i] == 'A':
		pA += 1
	elif b[i] == 'D':
		pD += 1
if pA > pD:
	print('Anton')
elif pD > pA:
	print('Danik')
else:
	print('Friendship')


asdad = input()
game = str(input())
if game.count('A') > game.count('D'):
	print('Anton')
elif game.count('A') < game.count('D'):
	print('Danik')
else:
	print('Friendship')


try:
	n = int(input())
	s = str(input())
	a = 0
	d = 0
	for i in range(n):
		if s[i] == 'A':
			a += 1
		else:
			d += 1
	if a > d:
		print('Anton')
	elif d > a:
		print('Danik')
	else:
		print('Friendship')
except:
	pass


n = int(input())
s = input()
count = 0
for i in range(n):
	if s[i] == 'A':
		count += 1
if count > len(s) / 2:
	print('Anton')
elif count < len(s) / 2:
	print('Danik')
else:
	print('Friendship')


l = int(input())
s = input()
d = 0
for letter in s:
	if letter == 'D':
		d += 1
a = l - d
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
str = input()
acount = 0
dcount = 0
for x in str:
	if x == 'A':
		acount = acount + 1
	elif x == 'D':
		dcount = dcount + 1
if acount > dcount:
	print('Anton')
elif dcount > acount:
	print('Danik')
else:
	print('Friendship')


times = int(input())
game = input()
wim = 0
for i in game:
	if i == 'A':
		wim += 1
if wim > 1 / 2 * times:
	print('Anton')
elif wim == 1 / 2 * times:
	print('Friendship')
else:
	print('Danik')


input()
a = 0
d = 0
game = input()
for letter in game:
	if letter == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


m = int(input())
k = str(input())
d = k.count('D')
a = k.count('A')
if d > a:
	print('Danik')
elif d < a:
	print('Anton')
else:
	print('Friendship')


answers = ['Anton', 'Danik', 'Friendship']
n = int(input())
sequence = input()
(a, d) = (0, 0)
i = 0
while abs(a - d) <= n and i < n:
	if sequence[i] == 'A':
		a += 1
	else:
		d += 1
	i += 1
if a > d:
	index = 0
elif d > a:
	index = 1
else:
	index = 2
print(answers[index])


n = int(input())
str1 = input()
Anton_count = str1.count('A')
Danik_count = str1.count('D')
if Anton_count > Danik_count:
	print('Anton')
elif Anton_count < Danik_count:
	print('Danik')
else:
	print('Friendship')


n = input()
score = input()
Anton = 0
for i in score:
	if i == 'A':
		Anton += 1
if Anton > len(score) / 2:
	print('Anton')
elif Anton == len(score) / 2:
	print('Friendship')
else:
	print('Danik')


n = int(input())
l = list(input())
A = l.count('A')
B = l.count('D')
if A > B:
	print('Anton')
elif B > A:
	print('Danik')
else:
	print('Friendship')


input()
gameRes = input()
aCount = int('0')
for i in gameRes:
	if i == 'A':
		aCount += 1
bCount = len(gameRes) - aCount
if aCount == bCount:
	print('Friendship')
elif aCount > bCount:
	print('Anton')
else:
	print('Danik')


input()
s = input()
A = sum([it == 'A' for it in s])
D = sum([it == 'D' for it in s])
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


w = input()
g = input()
x = g.count('D')
c = g.count('A')
if x > c:
	print('Danik')
elif x == c:
	print('Friendship')
else:
	print('Anton')


a = int(input())
b = input()
(ant, dan) = (0, 0)
for x in range(a):
	if b[x] == 'A':
		ant += 1
	else:
		dan += 1
if ant > dan:
	print('Anton')
elif dan > ant:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = str(input())
s.split()
a = s.count('A')
d = s.count('D')
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
matches = [a for a in input()]
anton = 0
danik = 0
for match in matches:
	if match == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
else:
	print('Friendship')


import math

def solve():
	N = int(input())
	S = str(input())
	if S.count('D') == S.count('A'):
		print('Friendship')
		return
	print('Anton' if S.count('A') > S.count('D') else 'Danik')
	return
Testcase = 1
for _ in range(Testcase):
	solve()


z = int(input(''))
x = input('')
m = 0
n = 0
for c in range(len(x)):
	if x[c] == 'D':
		m += 1
	if x[c] == 'A':
		n += 1
if m == n:
	print('Friendship')
if m > n:
	print('Danik')
if m < n:
	print('Anton')


n = int(input())
s = str(input())
if s.count('A') > s.count('D'):
	print('Anton')
if s.count('A') < s.count('D'):
	print('Danik')
if s.count('A') == s.count('D'):
	print('Friendship')


n = int(input())
s = input()
l = len(s)
a = set(s)
A = s.count('A')
D = s.count('D')
if A > D:
	print('Anton')
elif A < D:
	print('Danik')
else:
	print('Friendship')


n = int(input())
S = input()
S1 = S.count('A')
S2 = S.count('D')
if S1 > S2:
	print('Anton')
elif S1 < S2:
	print('Danik')
else:
	print('Friendship')


game_no = int(input())
String = input()
ACount = 0
DCount = 0
for i in range(0, game_no, 1):
	if 'A' == String[i]:
		ACount += 1
	elif 'D' == String[i]:
		DCount += 1
if ACount == DCount:
	print('Friendship')
elif ACount > DCount:
	print('Anton')
elif DCount > ACount:
	print('Danik')


def main():
	n = int(input())
	s = input()
	i = j = 0
	for k in s:
		if k == 'D':
			i += 1
		else:
			j += 1
	if i > j:
		print('Danik')
	elif i < j:
		print('Anton')
	else:
		print('Friendship')
main()


n = int(input())
string = list(str(input()))
anton = 0
danik = 0
for i in string:
	if i == 'A':
		anton += 1
	elif i == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
elif anton == danik:
	print('Friendship')


n = int(input())
s = input()
score = [0, 0]
for i in s:
	if i is 'A':
		score[0] += 1
	else:
		score[1] += 1
if score[0] > score[1]:
	print('Anton')
elif score[0] < score[1]:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = str(input())
list = [si for si in s]
countA = 0
countD = 0
for w in list:
	if w == 'A':
		countA += 1
	else:
		countD += 1
if countA > countD:
	print('Anton')
elif countD > countA:
	print('Danik')
else:
	print('Friendship')


import math
t = int(input())
A = 0
D = 0
word = input()
for i in word:
	if i == 'A':
		A += 1
	else:
		D += 1
if A > D:
	print('Anton')
elif A < D:
	print('Danik')
else:
	print('Friendship')


n = input()
res = 0
for each_char in input():
	if each_char == 'A':
		res += 1
	else:
		res -= 1
if res == 0:
	print('Friendship')
elif res > 0:
	print('Anton')
else:
	print('Danik')


n = int(input(''))
results = input('')
result = 0
for r in results:
	if r == 'A':
		result += 1
	else:
		result -= 1
if result == 0:
	print('Friendship')
elif result > 0:
	print('Anton')
else:
	print('Danik')


n = int(input())
wyniki = input()
x = 0
for i in wyniki:
	if i == 'A':
		x += 1
if x > n / 2:
	print('Anton')
elif x < n / 2:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
danik_won = 0
anton_won = 0
for g in s:
	if g == 'D':
		danik_won += 1
	elif g == 'A':
		anton_won += 1
if danik_won > anton_won:
	print('Danik')
elif anton_won > danik_won:
	print('Anton')
else:
	print('Friendship')


siz = int(input())
game = input()
a = 0
b = 0
for i in range(len(game)):
	if game[i] == 'A':
		a += 1
	elif game[i] == 'D':
		b += 1
if a > b:
	print('Anton')
elif b > a:
	print('Danik')
else:
	print('Friendship')


from sys import stdin
a = int(stdin.readline())
counta = 0
countd = 0
A = stdin.readline()
for b in range(0, a):
	if A[b] == 'A':
		counta += 1
	else:
		countd += 1
if counta > countd:
	print('Anton')
elif countd > counta:
	print('Danik')
else:
	print('Friendship')


def find_out(num, string):
	a_count = 0
	d_count = 0
	for i in range(0, num):
		if string[i] == 'A':
			a_count += 1
		elif string[i] == 'D':
			d_count += 1
	if a_count > d_count:
		return 'Anton'
	elif d_count > a_count:
		return 'Danik'
	else:
		return 'Friendship'
num = int(input())
string = input()
print(find_out(num, string))


t = int(input())
x = input()
k = x.count('A')
l = x.count('D')
if k > l:
	print('Anton')
elif k < l:
	print('Danik')
elif k == l:
	print('Friendship')


n = int(input())
s = input()
cA = 0
cD = 0
l = [i for i in s]
for i in l:
	if i == 'A':
		cA += 1
	else:
		cD += 1
if cA > cD:
	print('Anton')
elif cA < cD:
	print('Danik')
else:
	print('Friendship')


input()
t = input()
if t.count('A') > t.count('D'):
	print('Anton')
if t.count('D') > t.count('A'):
	print('Danik')
if t.count('D') == t.count('A'):
	print('Friendship')


from collections import Counter
n = input()
game = input()
count = Counter(game)
if count['A'] > count['D']:
	print('Anton')
elif count['D'] > count['A']:
	print('Danik')
else:
	print('Friendship')


content1 = input()
content2 = input()
a_counter = d_counter = result = 0
for char in content2:
	if char == 'A':
		a_counter += 1
	else:
		d_counter += 1
if d_counter > a_counter:
	result = 'Danik'
elif d_counter < a_counter:
	result = 'Anton'
else:
	result = 'Friendship'
print(result)


n = int(input())
r = str(input())
r.split()
c = 0
C = 0
for i in range(n):
	if r[i] == 'A':
		C += 1
	else:
		c += 1
if C > c:
	print('Anton')
elif c > C:
	print('Danik')
else:
	print('Friendship')


i = int(input())
j = input()
for k in range(0, len(j)):
	if j[k] == 'A':
		i = i - 1
if i < len(j) / 2:
	print('Anton')
elif i == len(j) / 2:
	print('Friendship')
else:
	print('Danik')


part = int(input())
x = input()
a = 0
b = 0
for i in x:
	if i == 'A':
		a += 1
	else:
		b += 1
if a > b:
	print('Anton')
elif a < b:
	print('Danik')
else:
	print('Friendship')


def solve(n, s):
	anton = danik = 0
	for i in range(0, n):
		if s[i] == 'A':
			anton += 1
		else:
			danik += 1
	return 'Anton' if anton > danik else 'Danik' if anton < danik else 'Friendship'
n = int(input())
s = input()
print(solve(n, s))


m = int(input())
a = str(input())
l = list(a)
h = 0
j = 0
for i in range(m):
	if l[i] == 'A':
		h += 1
	else:
		j += 1
if h > j:
	print('Anton')
elif h < j:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
anton_won = ''.join([chr for chr in s if chr is 'A'])
danik_won = ''.join([chr for chr in s if chr is 'D'])
if len(anton_won) == len(danik_won):
	print('Friendship')
elif len(anton_won) > len(danik_won):
	print('Anton')
else:
	print('Danik')


games = int(input())
matches = input().strip()
val = matches.count('A') << 1
if val > games:
	print('Anton')
elif val == games:
	print('Friendship')
else:
	print('Danik')


def game(n, s):
	c1 = 0
	c2 = 0
	for i in range(0, n):
		if s[i] == 'A':
			c1 += 1
		if s[i] == 'D':
			c2 += 1
	if c1 > c2:
		print('Anton')
	elif c2 > c1:
		print('Danik')
	else:
		print('Friendship')
n = int(input())
s = input()
res = game(n, s)


try:
	n = int(input())
	s = input()[:n]
	s = list(s)
	if s.count('D') > s.count('A'):
		print('Danik')
	if s.count('A') > s.count('D'):
		print('Anton')
	if s.count('A') == s.count('D'):
		print('Friendship')
	pass
except Exception:
	pass


n = int(input())
a = input()
c = 0
d = 0
for i in range(n):
	if a[i] == 'A':
		c += 1
	elif a[i] == 'D':
		d += 1
if c > d:
	print('Anton')
elif d > c:
	print('Danik')
elif c == d:
	print('Friendship')


a = int(input())
b = input()
i = 0
asum = 0
while a != i:
	if b[i] == 'A':
		asum += 1
	i += 1
if 2 * asum > a:
	print('Anton')
elif 2 * asum < a:
	print('Danik')
else:
	print('Friendship')


xyz = []

def input1():
	global xyz
	if len(xyz) == 0:
		xyz = [i for i in input().split()]
		xyz = xyz[::-1]
	v = xyz[-1]
	del xyz[-1]
	return v
n = int(input1())
s = input1()
a = 0
d = 0
for x in s:
	if x == 'A':
		a = a + 1
	else:
		d = d + 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


j = int(input())
i = input()
a = i.count('A')
b = i.count('D')
if a > b:
	print('Anton')
elif b > a:
	print('Danik')
elif a == b:
	print('Friendship')
else:
	pass


try:
	n = int(input())
	if n >= 1 and n <= 100000:
		games = input()
		dic = {'A': 0, 'D': 0}
		if len(games) == n:
			for i in range(0, len(games)):
				dic[games[i]] += 1
			if dic['A'] > dic['D']:
				print('Anton')
			elif dic['A'] < dic['D']:
				print('Danik')
			else:
				print('Friendship')
except Exception as e:
	print(e)


no_of_games = input()
game_winners = input()
anton = game_winners.count('A')
darwik = game_winners.count('D')
if anton > darwik:
	print('Anton')
elif darwik == anton:
	print('Friendship')
else:
	print('Danik')


n = input()
a = input()
f = 0
s = 0
for i in range(len(a)):
	if a[i] == 'A':
		f += 1
	else:
		s += 1
if f > s:
	print('Anton')
if f < s:
	print('Danik')
if f == s:
	print('Friendship')


from heapq import heappush, heappop

def int_raw():
	return int(input())

def ss_raw():
	return input().split()

def ints_raw():
	return list(map(int, input().split()))
N = int_raw()
S = input()

def main():
	return 'Anton' if S.count('A') > N / 2 else 'Danik' if S.count('A') < N / 2 else 'Friendship'
print(main())


import math as mt
import sys as sy

class abc:

	def mkl(self):
		n = int(input())
		S = input()
		(a, d) = (int(S.count('A')), int(S.count('D')))
		if a == d:
			print('Friendship')
		elif a > d:
			print('Anton')
		else:
			print('Danik')
b = abc()
b.mkl()


n = int(input())
games = input()
A = games.count('A')
B = n - A
if A == B:
	print('Friendship')
elif A > B:
	print('Anton')
else:
	print('Danik')


n = int(input())
s = str(input())
s.split()
a = 0
d = 0
for x in s:
	if x == 'A':
		a += 1
	else:
		d += 1
if a < d:
	print('Danik')
elif a > d:
	print('Anton')
else:
	print('Friendship')


n = int(input().strip())
s = list(input().strip())
(ANTON, DANIK) = ('Anton', 'Danik')
(aScore, dScore) = (0, 0)
for winner in s:
	if winner == ANTON[0]:
		aScore += 1
	else:
		dScore += 1
if aScore == dScore:
	print('Friendship')
elif aScore > dScore:
	print(ANTON)
else:
	print(DANIK)


a = int(input())
s = input()
x = s.count('A')
y = s.count('D')
if x > y:
	print('Anton')
elif x < y:
	print('Danik')
elif x == y:
	print('Friendship')


n = int(input())
s = input()
l = []
for i in s:
	l.append(i)
a = l.count('A')
d = l.count('D')
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
c_a = 0
c_d = 0
for i in s:
	if i == 'A':
		c_a += 1
	else:
		c_d += 1
if c_a == c_d:
	print('Friendship')
elif c_a > c_d:
	print('Anton')
else:
	print('Danik')


def _734A(wins):
	Anton = wins.count('A')
	Danik = wins.count('D')
	if Anton > Danik:
		return 'Anton'
	elif Anton < Danik:
		return 'Danik'
	else:
		return 'Friendship'
input()
print(_734A(list(input())))


gnum = int(input())
data = list(map(str, input()))
ascore = 0
dscore = 0
for i in data:
	if i == 'A':
		ascore = ascore + 1
	if i == 'D':
		dscore = dscore + 1
if ascore > dscore:
	print('Anton')
if dscore > ascore:
	print('Danik')
if dscore == ascore:
	print('Friendship')


a = int(input())
b = input()
na = 0
nd = 0
for i in range(0, a):
	if b[i] == 'A':
		na = na + 1
	if b[i] == 'D':
		nd = nd + 1
if na > nd:
	print('Anton')
if nd > na:
	print('Danik')
if na == nd:
	print('Friendship')


N = input()
game = input()
anton = game.count('A')
danik = game.count('D')
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
else:
	print('Friendship')


n = int(input())
x = str(input())
count = 0
plus = 0
for i in range(n):
	if x[i] == 'A':
		count += 1
	elif x[i] == 'D':
		plus += 1
if count > plus:
	print('Anton')
elif count == plus:
	print('Friendship')
else:
	print('Danik')


index = int(input()) - 1
a = 0
d = 0
c = input()
while index >= 0:
	if c[index] == 'A':
		a = a + 1
	if c[index] == 'D':
		d = d + 1
	index = index - 1
if a > d:
	print('Anton')
if d > a:
	print('Danik')
if a == d:
	print('Friendship')


def check(string):
	if string.count('A') > string.count('D'):
		return 'Anton'
	elif string.count('D') > string.count('A'):
		return 'Danik'
	else:
		return 'Friendship'
length = input()
print(check(input()))


nbrGames = int(input())
results = input()
countA = 0
countD = 0
for i in range(0, nbrGames):
	if results[i] == 'A':
		countA += 1
	if results[i] == 'D':
		countD += 1
if countD > countA:
	print('Danik')
elif countD < countA:
	print('Anton')
else:
	print('Friendship')


def Q27(string):
	count_A = 0
	count_D = 0
	for i in string:
		if i == 'A':
			count_A += 1
		elif i == 'D':
			count_D += 1
	if count_A > count_D:
		return 'Anton'
	elif count_A < count_D:
		return 'Danik'
	else:
		return 'Friendship'
n = int(input())
line = input().strip()
print(Q27(line))


import sys

def a(res):
	a = res.count('A')
	d = res.count('D')
	if a > d:
		return 'Anton'
	if d > a:
		return 'Danik'
	return 'Friendship'

def readline():
	return input()
n = readline()
res = readline()
print(a(res))
sys.exit(0)


n = int(input())
s = input()
sumA = 0
sumD = 0
for i in range(len(s)):
	if s[i] == 'A':
		sumA += 1
	else:
		sumD += 1
if sumA > sumD:
	print('Anton')
elif sumA < sumD:
	print('Danik')
else:
	print('Friendship')


s = int(input())
a = str(input())
b = a.count('A')
c = a.count('D')
if b > c:
	print('Anton')
elif b < c:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
p = 0
q = 0
for x in s:
	if x == 'A':
		p += 1
	else:
		q += 1
if p > q:
	print('Anton')
elif q > p:
	print('Danik')
else:
	print('Friendship')


n = int(input())
st = str(input())
antonCount = 0
danikCount = 0
for i in range(0, len(st)):
	if st[i] == 'A':
		antonCount += 1
	else:
		danikCount += 1
if antonCount > danikCount:
	print('Anton')
elif danikCount > antonCount:
	print('Danik')
else:
	print('Friendship')


n = map(int, input().split())
word = str(input())
A_counter = 0
D_counter = 0
for i in word:
	if i == 'A':
		A_counter += 1
	elif i == 'D':
		D_counter += 1
if A_counter > D_counter:
	print('Anton')
elif D_counter > A_counter:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input().count('A')
print('Friendship' if (n / 2).is_integer() and s == n / 2 else 'Danik' if s < n / 2 else 'Anton')


from math import *

def main():
	n = int(input())
	s = input()
	a = 0
	d = 0
	for c in s:
		if c == 'A':
			a += 1
		else:
			d += 1
	if d > a:
		print('Danik')
	elif a > d:
		print('Anton')
	else:
		print('Friendship')
main()


def sign(a: int) -> int:
	if a == 0:
		return 0
	elif a > 0:
		return 1
	return -1
n = int(input())
s = input()
anton = 0
for i in range(n):
	anton += [-1, 1][s[i] == 'A']
print(['Danik', 'Friendship', 'Anton'][1 + sign(anton)])


t = int(input())
s = str(input())
l = list(s)
c1 = 0
c2 = 0
for i in l:
	if i == 'A':
		c1 += 1
	else:
		c2 += 1
if c1 > c2:
	print('Anton')
elif c1 < c2:
	print('Danik')
else:
	print('Friendship')


(n, s) = (int(input()), str(input()))
(A_sum, D_sum) = (s.count('A'), s.count('D'))
if A_sum > D_sum:
	print('Anton')
elif A_sum < D_sum:
	print('Danik')
else:
	print('Friendship')


cost = int(input())
a = input()
count1 = a.count('A')
count2 = a.count('D')
if count1 > count2:
	print('Anton')
if count1 < count2:
	print('Danik')
if count1 == count2:
	print('Friendship')


y = int(input())
x = input()
x = list(x)
c = 0
for i in x:
	if i == 'A':
		c += 1
if c == len(x) / 2:
	print('Friendship')
elif c < len(x) / 2:
	print('Danik')
else:
	print('Anton')


n = int(input())
r = input()
v = r.upper()
c1 = 0
c2 = 0
for j in range(0, n):
	if v[j] == 'A':
		c1 = c1 + 1
	elif v[j] == 'D':
		c2 = c2 + 1
if c1 > c2:
	print('Anton')
elif c1 < c2:
	print('Danik')
else:
	print('Friendship')


input()
y = input()
if sum((i == 'A' for i in y)) == sum((v == 'D' for v in y)):
	print('Friendship')
elif sum((i == 'A' for i in y)) >= sum((v == 'D' for v in y)):
	print('Anton')
else:
	print('Danik')


import collections
n = int(input())
s = collections.Counter(input())
if s['A'] > s['D']:
	print('Anton')
elif s['D'] > s['A']:
	print('Danik')
else:
	print('Friendship')


n = input()
input_string = input()
map = {}
map['A'] = 0
map['D'] = 0
for i in range(0, len(input_string)):
	if input_string[i] in map:
		map[input_string[i]] += 1
if map.get('A') > map.get('D'):
	print('Anton')
if map.get('D') > map.get('A'):
	print('Danik')
if map.get('A') == map.get('D'):
	print('Friendship')


n = int(input())
l = input()
k = l.count('A')
if k > n - k:
	print('Anton')
elif k == n - k:
	print('Friendship')
else:
	print('Danik')


import re
n = int(input())
s = input()
A = len(re.findall('A', s))
D = len(re.findall('D', s))
print(['', 'Friendship', 'Danik', '', 'Anton'][int(str(int(A > D)) + str(int(D > A)) + str(int(A == D)), 2)])


inp = int(input())
play = str(input())
anton = 0
danik = 0
if inp >= 1 and inp <= 100000:
	if inp == len(play):
		for x in play:
			if x == 'A':
				anton = anton + 1
			elif x == 'D':
				danik = danik + 1
		if anton > danik:
			print('Anton')
		elif anton < danik:
			print('Danik')
		else:
			print('Friendship')
	else:
		exit(0)
else:
	exit(0)


n = int(input())
fridge = [i for i in input()]
counter_a = 0
counter_d = 0
for i in fridge:
	if i == 'A':
		counter_a += 1
	else:
		counter_d += 1
if counter_a > counter_d:
	print('Anton')
elif counter_d > counter_a:
	print('Danik')
else:
	print('Friendship')


h = int(input())
r = list(input())
a = 0
d = 0
lst = r
for i in range(len(lst)):
	if lst[i] == 'A':
		a += 1
	elif lst[i] == 'D':
		d += 1
if a > d:
	print('Anton')
elif a == d:
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = input()
a_won = 0
for game in s:
	if game == 'A':
		a_won += 1
	else:
		a_won -= 1
if a_won > 0:
	print('Anton')
elif a_won < 0:
	print('Danik')
else:
	print('Friendship')


a = int(input(''))
b = input('')
x = [c for c in b]
counter = {'Anton': 0, 'Danik': 0, 'Friendship': 0}
for c in b:
	if c == 'A':
		counter['Anton'] += 1
	elif c == 'D':
		counter['Danik'] += 1
if counter['Anton'] == counter['Danik']:
	counter['Friendship'] = 9999999
print(max(counter, key=counter.get))


import sys

def gets():
	return sys.stdin.readline().strip()

def get():
	return int(sys.stdin.readline().strip())
n = get()
s = list(gets())
(a, b) = (s.count('A'), s.count('D'))
if a == b:
	print('Friendship')
elif a > b:
	print('Anton')
else:
	print('Danik')


cnt = input()
st = input()
ant = st.count('A')
dan = st.count('D')
if ant > dan:
	print('Anton')
elif dan > ant:
	print('Danik')
else:
	print('Friendship')


x = int(input())
s = list(input())
c1 = s.count('A')
c2 = s.count('D')
if c1 == c2:
	print('Friendship')
elif c1 > c2:
	print('Anton')
else:
	print('Danik')


numberOfGames = int(input())
resultString = input()
numberOfGamesAntonWon = 0
numberOfGamesDanikWon = 0
for char in resultString:
	if char == 'A':
		numberOfGamesAntonWon = numberOfGamesAntonWon + 1
	else:
		numberOfGamesDanikWon = numberOfGamesDanikWon + 1
if numberOfGamesAntonWon > numberOfGamesDanikWon:
	print('Anton')
elif numberOfGamesAntonWon < numberOfGamesDanikWon:
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = input()
num1 = a.count('A')
num2 = a.count('D')
if num1 > num2:
	print('Anton')
elif num1 == num2:
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = input()
Anton_points = 0
Danik_points = 0
for char in s:
	if char == 'A':
		Anton_points += 1
	else:
		Danik_points += 1
if Anton_points > Danik_points:
	print('Anton')
elif Anton_points < Danik_points:
	print('Danik')
else:
	print('Friendship')


N = int(input())
a = 0
b = 0
(a, b) = (int(a), int(b))
f = input()
for i in range(N):
	if f[i] == 'A':
		a += 1
	else:
		b += 1
if a > b:
	print('Anton')
elif b > a:
	print('Danik')
else:
	print('Friendship')


a = int(input())
x = input()
anton = 0
danik = 0
for a in x:
	if a == 'A':
		anton += 1
	elif a == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


import sys
a = int(input())
b = input()
A = 0
D = 0
for i in b:
	if i == 'A':
		A += 1
	else:
		D += 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


n = int(input())
results = list(input())
D = 0
A = 0
for i in results:
	if i == 'D':
		D += 1
	elif i == 'A':
		A += 1
if D > A:
	print('Danik')
elif D < A:
	print('Anton')
else:
	print('Friendship')


n = int(input(''))
s = input('')
list1 = []
for i in s:
	list1.append(i)
l = list1.count('D')
m = list1.count('A')
if l > m:
	print('Danik')
elif m > l:
	print('Anton')
else:
	print('Friendship')


def anton_and_danik(n, s):
	(cnt_a, cnt_d) = (0, 0)
	for i in s:
		if i == 'A':
			cnt_a += 1
		else:
			cnt_d += 1
	res = ''
	if cnt_a > cnt_d:
		res = 'Anton'
	if cnt_a < cnt_d:
		res = 'Danik'
	if cnt_a == cnt_d:
		res = 'Friendship'
	return res
n = int(input())
s = input()
print(anton_and_danik(n, s))


n = input()
l = input()
d = dict()
d['A'] = 0
d['D'] = 0
for i in l:
	d[i] += 1
if d['A'] > d['D']:
	print('Anton')
elif d['A'] < d['D']:
	print('Danik')
else:
	print('Friendship')


n = int(input(''))
m = input('')
c = 0
k = 0
x = list(m)
for i in range(n):
	if x[i] == 'A':
		c += 1
	else:
		k += 1
if c > k:
	print('Anton')
elif c < k:
	print('Danik')
else:
	print('Friendship')


_ = input()
games = input()
(A, D) = (0, 0)
for game in games:
	if game == 'A':
		A += 1
	else:
		D += 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


(_, match_str) = (input(), input().strip())
(win_a, win_b) = (match_str.count('A'), match_str.count('D'))
print('Anton' if win_a > win_b else 'Danik' if win_a < win_b else 'Friendship')


n = eval(input())
winners = list(input())
if winners.count('A') > winners.count('D'):
	print('Anton')
elif winners.count('A') == winners.count('D'):
	print('Friendship')
else:
	print('Danik')


input()
g = list(input())
a = g.count('A')
d = g.count('D')
if a == d:
	print('Friendship')
elif a > d:
	print('Anton')
else:
	print('Danik')


def calc(n, s):
	a = s.count('A')
	if a > n - a:
		return 'Anton'
	elif n - a > a:
		return 'Danik'
	return 'Friendship'
n = int(input())
ss = input()
print(calc(n, ss))


v = int(input())
s = input()
d = 0
a = 0
for i in range(v):
	if s[i] == 'A':
		a = a + 1
	else:
		d = d + 1
if d > a:
	print('Danik')
elif a > d:
	print('Anton')
elif a == d:
	print('Friendship')


n = input()
f = input()
count_upper = 0
count_lower = 0
if f.count('A') > f.count('D'):
	print('Anton')
if f.count('D') > f.count('A'):
	print('Danik')
if f.count('D') == f.count('A'):
	print('Friendship')


int(input())
x = 0
y = 0
for i in input():
	if i == 'A':
		x += 1
	else:
		y += 1
if x > y:
	print('Anton')
elif x == y:
	print('Friendship')
else:
	print('Danik')


a = 0
d = 0
n = int(input())
while n < 1 or n > 100000:
	n = int(input())
s = str(input()).upper()
for i in range(0, n):
	if s[i] == 'A':
		a += 1
	elif s[i] == 'D':
		d += 1
	else:
		continue
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


p = int(input())
s = input()
anton = s.count('A')
danik = s.count('D')
if anton == danik:
	print('Friendship')
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')


num_of_gms = int(input())
w = input()
if w.count('A') > w.count('D'):
	print('Anton')
elif w.count('A') < w.count('D'):
	print('Danik')
else:
	print('Friendship')


num_played_game = input()
wins_list = input()
result = {'A': 0, 'D': 0}
for win in wins_list:
	result[win] += 1
if result['A'] > result['D']:
	print('Anton')
elif result['A'] < result['D']:
	print('Danik')
else:
	print('Friendship')


n = int(input())
string = input()
dc = 0
ac = 0
for i in string:
	if i == 'A':
		ac += 1
	elif i == 'D':
		dc += 1
if ac > n // 2:
	print('Anton')
elif dc > n // 2:
	print('Danik')
elif ac == dc == n / 2:
	print('Friendship')


cA = 0
cD = 0
n = int(input())
word = input()
for letter in word:
	if letter == 'A':
		cA += 1
	else:
		cD += 1
if cA > cD:
	print('Anton')
elif cD > cA:
	print('Danik')
else:
	print('Friendship')


n = input()
str = input()
As = str.count('A')
Ds = str.count('D')
if As > Ds:
	print('Anton')
elif As < Ds:
	print('Danik')
else:
	print('Friendship')


t = int(input())
string = input()
anton = 0
danik = 0
for i in string:
	if i == 'A':
		anton += 1
		continue
	else:
		danik += 1
ans = 'Anton' if anton > danik else 'Danik'
if anton == danik:
	print('Friendship')
else:
	print(ans)


a = input()
b = input()
ant = 0
dan = 0
for i in b:
	if i == 'A':
		ant += 1
	else:
		dan += 1
if ant > dan:
	print('Anton')
if dan > ant:
	print('Danik')
if dan == ant:
	print('Friendship')


N = int(input())
arr = str(input())
cnta = 0
cntd = 0
for x in arr:
	if x == 'A':
		cnta += 1
	else:
		cntd += 1
if cnta == cntd:
	print('Friendship')
elif cnta > cntd:
	print('Anton')
else:
	print('Danik')


userInput = int(input())
secondInput = input()
Anton = 0
Danik = 0
for i in secondInput:
	if i == 'A':
		Danik -= 1
		Anton += 1
	elif i == 'D':
		Danik += 1
		Anton -= 1
if Danik > Anton:
	print('Danik')
elif Anton > Danik:
	print('Anton')
else:
	print('Friendship')


first_line = input()
second_line = input()
Anton_win = second_line.count('A')
Danik_win = second_line.count('D')
if Anton_win > Danik_win:
	print('Anton')
elif Anton_win < Danik_win:
	print('Danik')
else:
	print('Friendship')


it = 0
a = 0
d = 0
i = input()
i = int(i)
s = input()
while it < i:
	if s[it] == 'A':
		a = a + 1
	else:
		d = d + 1
	it = it + 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
cnt = 0
for e in s:
	if e == 'A':
		cnt += 1
if cnt == len(s) - cnt:
	print('Friendship')
elif cnt > len(s) - cnt:
	print('Anton')
else:
	print('Danik')


s = int(input())
a = input()
ad = a.count('A')
cd = a.count('D')
if ad > cd:
	print('Anton')
elif ad < cd:
	print('Danik')
else:
	print('Friendship')


x = int(input())
suma = 0
sumd = 0
st = [str(x) for x in input()]
for i in range(0, x):
	y = st[i]
	if y == 'A':
		suma += 1
	elif y == 'D':
		sumd += 1
if suma > sumd:
	print('Anton')
elif sumd > suma:
	print('Danik')
else:
	print('Friendship')


(n, line) = (int(input()), input())
(As, Ds) = (line.count('A'), line.count('D'))
if As > Ds:
	print('Anton')
elif Ds > As:
	print('Danik')
else:
	print('Friendship')


n = map(int, input().split())
list = input()
counter_a = 0
counter_d = 0
for i in range(len(list)):
	if list[i].lower() == 'a':
		counter_a += 1
	else:
		counter_d += 1
if counter_a > counter_d:
	print('Anton')
elif counter_d > counter_a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = str(input())
x = list(s)
a = x.count('A')
b = x.count('D')
if a > b:
	print('Anton')
elif a < b:
	print('Danik')
elif a == b:
	print('Friendship')


n = input()
n = int(n.strip())
niz = input()
niz = niz.strip()
a = 0
d = 0
for znak in niz:
	if znak == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a == d:
	print('Friendship')
else:
	print('Danik')


input()
s = input()
scorea = s.count('A')
scored = s.count('D')
if scorea == scored:
	print('Friendship')
elif scorea > scored:
	print('Anton')
else:
	print('Danik')


n = int(input())
m = input().lower()
a = 0
d = 0
for i in m:
	if i == 'a':
		a += 1
	else:
		d += 1
print('Anton' if a > d else 'Danik' if a < d else 'Friendship')


p = int(input())
i = input()
n = count = countt = 0
while n < p:
	if i[n:n + 1] == 'A':
		count = count + 1
	if i[n:n + 1] == 'D':
		countt = countt + 1
	n = n + 1
if count == countt:
	print('Friendship')
if count < countt:
	print('Danik')
if count > countt:
	print('Anton')


a = int(input())
b = input()
k = 0
l = 0
c = 0
while c < a:
	if b[c] == 'A':
		k = k + 1
	else:
		l = l + 1
	c = c + 1
if k > l:
	print('Anton')
if k < l:
	print('Danik')
if k == l:
	print('Friendship')


a = int(input())
b = input()
c = list(b)
m = c.count('A')
n = c.count('D')
if m > n:
	print('Anton')
if m < n:
	print('Danik')
if m == n:
	print('Friendship')


n = input()
s = input()
c = 0
r = 0
for i in s:
	if i == 'A':
		c += 1
	else:
		r += 1
if c > r:
	print('Anton')
elif r > c:
	print('Danik')
else:
	print('Friendship')


n = input()
s = input()
danik_points = 0
anton_points = 0
for i in s:
	if i == 'A':
		anton_points += 1
	else:
		danik_points += 1
if anton_points > danik_points:
	print('Anton')
elif anton_points < danik_points:
	print('Danik')
else:
	print('Friendship')


n = input()
str = input()
result = 0
for i in range(len(str)):
	if str[i] == 'A':
		result += 1
	else:
		result -= 1
if result > 0:
	print('Anton')
elif result < 0:
	print('Danik')
else:
	print('Friendship')


sinput = input()
sinput2 = input()
n = int(sinput)
anton = 0
danik = 0
for i in sinput2:
	if i == 'A':
		anton += 1
	elif i == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
a = 5
if int(n) == s.count('A') + s.count('D'):
	if 1 <= n <= 100000:
		na = s.count('A')
		nd = s.count('D')
		if na > nd:
			print('Anton')
		if nd > na:
			print('Danik')
		if nd == na:
			print('Friendship')


n = int(input())
T = input()
S = 0
for i in range(n):
	if T[i] == 'A':
		S = S + 1
if S == n / 2:
	print('Friendship')
elif S > n / 2:
	print('Anton')
else:
	print('Danik')


string_length = input()
test_string = input()
anton = 0
danik = 0
for char in test_string:
	if char == 'A':
		anton += 1
	elif char == 'D':
		danik += 1
	else:
		pass
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
elif anton == danik:
	print('Friendship')


n = int(input())
s = input()
count_a = s.count('A')
count_d = s.count('D')
if count_a > count_d:
	print('Anton')
elif count_d > count_a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
A = 0
D = 0
for i in range(n):
	if s[i] == 'A':
		A += 1
	if s[i] == 'D':
		D += 1
if A > D:
	print('Anton')
if A < D:
	print('Danik')
if A == D:
	print('Friendship')


def main():
	games = int(input())
	string = input()
	danik = string.count('D')
	anton = string.count('A')
	if danik > anton:
		print('Danik')
	elif anton > danik:
		print('Anton')
	else:
		print('Friendship')
main()


c = 0
j = 0
n = int(input())
l = list(input())
for i in range(len(l)):
	if l[i] == 'A':
		c += 1
	else:
		j += 1
if c == j:
	print('Friendship')
elif c > j:
	print('Anton')
else:
	print('Danik')


n = int(input())
s = str(input())
letters = []
for x in s:
	letters.append(x)
count_A = 0
count_D = 0
for i in range(len(s)):
	if letters[i] == 'A':
		count_A = count_A + 1
	if letters[i] == 'D':
		count_D = count_D + 1
if count_A > count_D:
	print('Anton')
elif count_A < count_D:
	print('Danik')
elif count_D == count_A:
	print('Friendship')


n = int(input())
g = input()
count_A = g.count('A')
if count_A > n - count_A:
	print('Anton')
elif count_A < n - count_A:
	print('Danik')
else:
	print('Friendship')


a = input()
b = input()
A = b.count('A')
B = b.count('D')
if A > B:
	print('Anton')
elif B > A:
	print('Danik')
else:
	print('Friendship')


N = int(input())
thing = input()
ACount = 0
DCount = 0
for x in thing:
	if x == 'A':
		ACount += 1
	else:
		DCount += 1
if ACount > DCount:
	print('Anton')
elif DCount > ACount:
	print('Danik')
else:
	print('Friendship')


x = int(input())
ch = input()
if ch.count('A') > ch.count('D'):
	print('Anton')
elif ch.count('A') < ch.count('D'):
	print('Danik')
else:
	print('Friendship')


angka = int(input())
win = input()
x = len(win)
Anton = 0
Danik = 0
for i in range(x):
	if win[i] == 'A':
		Anton += 1
	else:
		Danik += 1
if Anton > Danik:
	print('Anton')
elif Danik > Anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = input()
dc = a.count('D')
ac = a.count('A')
if ac == dc:
	print('Friendship')
elif ac > dc:
	print('Anton')
else:
	print('Danik')


def game(s):
	if s.count('A') > s.count('D'):
		return 'Anton'
	elif s.count('A') == s.count('D'):
		return 'Friendship'
	return 'Danik'
n = input().strip()
st = list(map(str, input().strip()))
s = [i for i in st]
print(game(s))


n_div_2 = int(input()) / 2
count_a = input().count('A')
print('Friendship' if count_a == n_div_2 else 'Anton' if count_a > n_div_2 else 'Danik')


num = int(input())
word = input()
a = 0
d = 0
for i in range(0, len(word)):
	if ord(word[i]) == 65:
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
elif a == d:
	print('Friendship')


n = input().strip()
string = input().strip()
aux = list(string)
a = aux.count('A')
d = aux.count('D')
if d > a:
	print('Danik')
elif d < a:
	print('Anton')
else:
	print('Friendship')


n = int(input())
s = str(input())
k = sum((1 for x in s if x == 'D'))
l = len(s) - k
if k > l:
	print('Danik')
elif l > k:
	print('Anton')
elif l == k:
	print('Friendship')


def Main():
	n = int(input())
	res = input()
	ac = res.count('A')
	dc = n - ac
	if ac > dc:
		print('Anton')
	elif dc > ac:
		print('Danik')
	else:
		print('Friendship')
Main()


def main():
	n = int(input())
	games = input()
	D = 0
	A = 0
	for c in games:
		if c == 'A':
			A += 1
		else:
			D += 1
	if D == A:
		print('Friendship')
	elif D > A:
		print('Danik')
	else:
		print('Anton')
main()


num = int(input())
gameWon = input()
a = 0
b = 0
count = 0
for i in gameWon:
	if gameWon[count] == 'A':
		a = a + 1
	else:
		b = b + 1
	count = count + 1
if a > b:
	print('Anton')
elif b > a:
	print('Danik')
elif a == b:
	print('Friendship')


import math

def bb():
	(a, b) = list(map(int, input().split()))
	i = 0
	while a <= b:
		a *= 3
		b *= 2
		i += 1
	print(i)

def beatiful_matrix():
	middle = 2
	matrix = []
	for i in range(5):
		a = list(map(int, input().split()))
		for j in range(5):
			if a[j] == 1:
				middle = math.fabs(middle - i) + math.fabs(middle - j)
	print(int(middle))

def anton_danik():
	ngames = input()
	ad = list(map(str, input())).count('A')
	if ad == int(ngames) / 2:
		print('Friendship')
	elif ad > int(ngames) / 2:
		print('Anton')
	else:
		print('Danik')
anton_danik()


n = int(input())
ant = 0
den = 0
s = input()
for i in range(n):
	if s[i] == 'D':
		den += 1
	else:
		ant += 1
if den > ant:
	print('Danik')
elif ant > den:
	print('Anton')
else:
	print('Friendship')


n = int(input())
n2 = n
m = input()
for i in m:
	if i == 'A':
		n -= 1
	else:
		n += 1
if n < n2:
	print('Anton')
elif n > n2:
	print('Danik')
else:
	print('Friendship')


games = int(input())
total = sum([-1 if i == 'A' else 1 for i in input()])
print('Anton' if total < 0 else 'Danik' if total > 0 else 'Friendship')


n = int(input())
s = input().strip()
counter1 = 0
counter2 = 0
for char in s:
	if char == 'A':
		counter1 += 1
	else:
		counter2 += 1
if counter1 > counter2:
	print('Anton')
elif counter2 > counter1:
	print('Danik')
else:
	print('Friendship')


def main():
	n = int(input())
	mot = input()
	if mot.count('A') == mot.count('D'):
		print('Friendship')
	elif mot.count('A') > mot.count('D'):
		print('Anton')
	else:
		print('Danik')
main()


l = int(input())
games = input()
(an, dan) = (games.count('A'), games.count('D'))
if an == dan:
	print('Friendship')
elif an > dan:
	print('Anton')
else:
	print('Danik')


n = input()
s = input()
ca = cd = 0
for ch in s:
	if ch == 'A':
		ca += 1
	else:
		cd += 1
if ca > cd:
	print('Anton')
elif ca < cd:
	print('Danik')
else:
	print('Friendship')


n = int(input())
m = input()
length = len(m)
length_A = 0
for i in range(length):
	if m[i] == 'A':
		length_A += 1
length_D = length - length_A
if length_A > length_D:
	print('Anton')
elif length_D > length_A:
	print('Danik')
else:
	print('Friendship')


n = input()
ss = input()
ss = list(ss)
A = 0
D = 0
for s in ss:
	if s == 'A':
		A += 1
	if s == 'D':
		D += 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


n = int(input())
str = input()
anton = 0
danik = 0
for ch in str:
	if ch == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
z = input()
aco = z.count('A')
dco = z.count('D')
if dco > aco:
	print('Danik')
elif aco > dco:
	print('Anton')
else:
	print('Friendship')


er = []
we = []
n = int(input())
s = str(input())
len(s) == n
r = list(s)
for i in r:
	if i == 'A':
		er.append(i)
	else:
		we.append(i)
if len(er) > len(we):
	print('Anton')
elif len(er) < len(we):
	print('Danik')
else:
	print('Friendship')


n = int(input())
Part = input()
kol_anton = Part.count('A')
kol_danik = Part.count('D')
if kol_anton < kol_danik:
	print('Danik')
elif kol_anton > kol_danik:
	print('Anton')
else:
	print('Friendship')


t = int(input())
s = input()
a = s.count('A')
d = t - a
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


no_games = int(input())
wins = input()
a_wins = 0
d_wins = 0
for i in wins:
	if i == 'A':
		a_wins += 1
	else:
		d_wins += 1
if a_wins == d_wins:
	print('Friendship')
elif a_wins > d_wins:
	print('Anton')
else:
	print('Danik')


i = input
i()
s = i()
n = len(s)
c = s.count('A')
print('ADnatnoink'[c < n / 2::2]) if c != n / 2 else print('Friendship')


game_count = input()
games = input()
awins = games.count('A')
dwins = games.count('D')
if awins > dwins:
	print('Anton')
elif awins < dwins:
	print('Danik')
else:
	print('Friendship')


n = int(input(''))
strings = str(input(''))
d_count = 0
a_count = 0
for char in strings:
	d_count += 1 if char == 'D' else 0
	a_count += 1 if char == 'A' else 0
result = 'Friendship' if d_count == a_count else 'Anton' if a_count > d_count else 'Danik'
print(result)


n = int(input())
caracters = str(input())
anton = 0
danik = 0
for letter in caracters:
	if letter.upper() == 'A':
		anton += 1
	elif letter.upper() == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
a = sum((c == 'A' for c in s))
d = n - a
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


k = int(input())
s = input().lower()
s = list(s)
(a, d) = (0, 0)
for i in range(k):
	if s[i] == 'a':
		a += 1
		d += 0
	else:
		a += 0
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


gc = int(input())
yo = 0
sb = str(input())
for i in sb:
	if i == 'A':
		yo += 1
if yo > gc / 2:
	print('Anton')
elif yo == gc / 2:
	print('Friendship')
else:
	print('Danik')


x = int(input())
stri = input()
dcounter = 0
acounter = 0
for i in stri:
	if i == 'A':
		dcounter += 1
	else:
		acounter += 1
if dcounter > acounter:
	print('Anton')
elif dcounter < acounter:
	print('Danik')
else:
	print('Friendship')


games = int(input())
won = list(input())
D = 0
A = 0
for i in won:
	if i == 'A':
		A += 1
	else:
		D += 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


t = int(input())
er = input()
if er.count('A') > er.count('D'):
	print('Anton')
elif er.count('D') > er.count('A'):
	print('Danik')
else:
	print('Friendship')


n = input()
value = input()
anton = 0
danik = 0
for i in range(0, int(n)):
	if value[i] == 'A':
		anton += 1
	elif value[i] == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
game = list(map(str, input()))
a = 0
d = 0
for items in game:
	if items == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


_ = int(input())
record = input()
if record.count('A') > record.count('D'):
	print('Anton')
elif record.count('D') > record.count('A'):
	print('Danik')
else:
	print('Friendship')


x = int(input())
s = input()
na = s.count('A')
nd = s.count('D')
if na > nd:
	print('Anton')
elif na < nd:
	print('Danik')
else:
	print('Friendship')


n = eval(input())
l = input()
i = 0
d = 0
a = 0
while i < n:
	if l[i] == 'A':
		a += 1
	else:
		d += 1
	i += 1
if a > d:
	print('Anton')
elif d == a:
	print(' Friendship')
else:
	print(' Danik')


n = int(input())
s = str(input())
count = 0
add = 0
for i in range(n):
	if s[i] == 'A':
		count += 1
	else:
		add += 1
if count > add:
	print('Anton')
elif count == add:
	print('Friendship')
else:
	print('Danik')


a = int(input())
b = input().strip()
c = 0
d = 0
for x in b:
	if x == 'A':
		c += 1
	elif x == 'D':
		d += 1
if c == d:
	print('Friendship')
elif c > d:
	print('Anton')
elif c < d:
	print('Danik')


def get_num():
	return list(map(int, input().rstrip().split()))

def main():
	num = int(input())
	string = input()
	danik = 0
	anton = 0
	for i in range(num):
		if string[i] == 'D':
			danik += 1
		else:
			anton += 1
	if danik > anton:
		print('Danik')
	elif danik == anton:
		print('Friendship')
	else:
		print('Anton')
main()


n = int(input())
wins = str(input())
dan = 0
ant = 0
for i in wins:
	if i == 'D':
		dan += 1
	else:
		ant += 1
if ant > dan:
	print('Anton')
elif ant < dan:
	print('Danik')
else:
	print('Friendship')


x = {'A': 0, 'D': 0}
n = input()
str = input()
for i in str:
	if i in x:
		x[i] += 1
if x['A'] > x['D']:
	print('Anton')
elif x['A'] < x['D']:
	print('Danik')
else:
	print('Friendship')


x = int(input())
games = input()[:x]
games = list(games)
anton = []
danik = []
for i in games:
	if i == 'A':
		anton.append(69)
	elif i == 'D':
		danik.append(69)
if len(anton) < len(danik):
	print('Danik')
elif len(danik) < len(anton):
	print('Anton')
elif len(danik) == len(anton):
	print('Friendship')


n = int(input())
games = input()
A = 0
D = 0
for game in games:
	if game == 'A':
		A += 1
	if game == 'D':
		D += 1
if A > D:
	print('Anton')
if A == D:
	print('Friendship')
if D > A:
	print('Danik')


l = eval(input())
m = str(input())
a = 0
d = 0
i = 0
while i < len(m):
	if m[i] == 'A':
		a += 1
	else:
		d += 1
	i += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


import math
n = int(input())
sch = input()
if sch.count('A') > sch.count('D'):
	print('Anton')
elif sch.count('A') < sch.count('D'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
l = list(s)
cA = l.count('A')
cD = l.count('D')
if cA > cD:
	print('Anton')
elif cD > cA:
	print('Danik')
else:
	print('Friendship')


def games(nn):
	gg = nn.count('A')
	dd = nn.count('D')
	if gg == dd:
		print('Friendship')
	elif gg > dd:
		print('Anton')
	else:
		print('Danik')
n = int(input())
nn = str(input())
games(nn)


input()
(a, d) = (0, 0)
for player in input():
	if player == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
var = input()
var2 = [char for char in var]
count = 0
for i in range(n):
	if var2[i] == 'A':
		count += 1
decide = len(var2) / 2
if count > decide:
	print('Anton')
elif count == decide:
	print('Friendship')
else:
	print('Danik')


n = int(input())
g = input()
lst = []
for i in str(g):
	lst.append(i)
a = lst.count('A')
d = lst.count('D')
if a > d:
	print('Anton')
if a < d:
	print('Danik')
if a == d:
	print('Friendship')


n_games = int(input())
seq = input()
l = list(seq)
a = l.count('A')
b = l.count('D')
if a > b:
	print('Anton')
elif b > a:
	print('Danik')
elif a == b:
	print('Friendship')


no_of_games = int(input())
win = input()
win_a = 0
win_d = 0
for i in win:
	if i == 'A':
		win_a = win_a + 1
	else:
		win_d = win_d + 1
if win_a > win_d:
	print('Anton')
elif win_d > win_a:
	print('Danik')
else:
	print('Friendship')


n = int(input(''))
s = input('')
d = dict()
for i in s:
	d[i] = d.get(i, 0) + 1
if 'D' not in s:
	print('Anton')
elif 'A' not in s:
	print('Danik')
elif d['A'] > d['D']:
	print('Anton')
elif d['A'] < d['D']:
	print('Danik')
else:
	print('Friendship')


c = 0
d = 0
x = int(input())
y = list(input())
for i in y:
	if i == 'A':
		c += 1
	elif i == 'D':
		d += 1
if c > d:
	print('Anton')
elif c == d:
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = input()
a_count = 0
d_count = 0
for words in s:
	if words == 'A':
		a_count += 1
	elif words == 'D':
		d_count += 1
if a_count < d_count:
	print('Danik')
elif a_count > d_count:
	print('Anton')
else:
	print('Friendship')


n = int(input())
an = 0
dn = 0
a = input()
for i in range(n):
	if a[i] == 'A':
		an = an + 1
	else:
		dn = dn + 1
if an > dn:
	print('Anton')
elif an < dn:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input().strip()
antons = s.count('A')
daniks = s.count('D')
if antons > daniks:
	print('Anton')
if antons < daniks:
	print('Danik')
if antons == daniks:
	print('Friendship')


op = int(input())
g = input()
ac = 0
dc = 0
for i in g:
	if i == 'A':
		ac = ac + 1
	if i == 'D':
		dc = dc + 1
if ac > dc:
	print('Anton')
elif dc > ac:
	print('Danik')
else:
	print('Friendship')


def main():
	_ = input()
	winners = input()
	danik_wins = winners.count('D')
	if danik_wins * 2 == len(winners):
		print('Friendship')
	elif danik_wins * 2 > len(winners):
		print('Danik')
	else:
		print('Anton')
main()


games = int(input())
results = input()
a = 0
d = 0
for i in range(len(results)):
	if results[i] == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()

def whowon(n, s):
	ca = 0
	cd = 0
	for i in s:
		if i == 'A':
			ca += 1
		else:
			cd += 1
	if ca > cd:
		return 'Anton'
	if ca == cd:
		return 'Friendship'
	else:
		return 'Danik'
print(whowon(n, s))


n = int(input())
s = input()
ac = 0
for c in s:
	if c == 'A':
		ac += 1
print('Anton' if ac > n - ac else 'Danik' if ac < n - ac else 'Friendship')


input()
s = input()
A = 0
D = 0
for f in range(len(s)):
	if s[f] == 'A':
		A += 1
	else:
		D += 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


ANTON = 'A'
DANIK = 'D'

def count_letters(w, l):
	count = 0
	for letter in w:
		if letter == l:
			count += 1
	return count
n = int(input())
s = input()
if count_letters(s, ANTON) > count_letters(s, DANIK):
	print('Anton')
elif count_letters(s, ANTON) < count_letters(s, DANIK):
	print('Danik')
else:
	print('Friendship')


n = int(input())
lis = input()
ls = list(lis)
counta = 0
countb = 0
for items in ls:
	if items == 'A':
		counta += 1
	else:
		countb += 1
if counta > countb:
	print('Anton')
elif countb > counta:
	print('Danik')
else:
	print('Friendship')


k = int(input())
if k != 0:
	s = input()
	if s.count('A') > s.count('D'):
		print('Anton')
	elif s.count('D') > s.count('A'):
		print('Danik')
	else:
		print('Friendship')


n = int(input())
s = input()
ca = s.count('A')
cb = n - ca
print('Anton' if ca > cb else 'Danik' if cb > ca else 'Friendship')


from sys import stdin, stdout
input = stdin.readline

def write(n, sep='\n'):
	stdout.write(str(n))
	stdout.write(sep)

def gil():
	return list(map(int, input().split()))
n = int(input())
s = input()
a = s.count('A')
d = s.count('D')
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = str(input())
a = s.count('A')
d = s.count('D')
result = 'Friendship'
if a > d:
	result = 'Anton'
elif d > a:
	result = 'Danik'
print(result)


n = int(input())
s = input()
wins = []
a = 0
d = 0
for letter in s:
	wins.append(s)
	if letter == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input().rjust(n)
f = 0
v = 0
for i in s:
	if i == 'A':
		f = f + 1
	else:
		v = v + 1
if f > v:
	print('Anton')
elif f < v:
	print('Danik')
else:
	print('Friendship')


c = input()
str = input()
dict = {'A': 0, 'D': 0}
for l in str:
	dict[l] = dict[l] + 1
if dict['A'] == dict['D']:
	print('Friendship')
elif dict['A'] > dict['D']:
	print('Anton')
else:
	print('Danik')


n = int(input())
g = list(input())
k = g.count('A')
if k < n - k:
	print('Danik')
elif k > n - k:
	print('Anton')
else:
	print('Friendship')


n = int(input())
games = input()
acount = dcount = 0
for game in games:
	if game == 'A':
		acount += 1
	else:
		dcount += 1
if acount > dcount:
	print('Anton')
elif dcount > acount:
	print('Danik')
else:
	print('Friendship')


rounds = int(input())
won = input()
sum_a = 0
sum_b = 0
i = 0
while i < len(won):
	if won[i] == 'A':
		sum_a = sum_a + 1
	else:
		sum_b = sum_b + 1
	i = i + 1
if sum_a > sum_b:
	print('Anton')
elif sum_a == sum_b:
	print('Friendship')
else:
	print('Danik')


no = int(input())
st = input()
(a, d) = (0, 0)
for x in st:
	if x is 'A':
		a += 1
	else:
		d += 1
if d > a:
	print('Danik')
elif a > d:
	print('Anton')
else:
	print('Friendship')


n = int(input())
s = input()
k = 0
for c in s:
	k += c == 'A'
if k > len(s) - k:
	print('Anton')
elif k < len(s) - k:
	print('Danik')
else:
	print('Friendship')


input()
c = input()
if c.count('D') > c.count('A'):
	print('Danik')
elif c.count('A') > c.count('D'):
	print('Anton')
else:
	print('Friendship')


def check(s):
	a = s.count('A')
	d = s.count('D')
	if a > d:
		return 'Anton'
	elif a < d:
		return 'Danik'
	else:
		return 'Friendship'
n = int(input())
s = input()
print(check(s))


x = int(input())
y = input().upper()
anton = 0
for i in y:
	if i == 'A':
		anton += 1
	else:
		anton += 0
danik = len(y) - anton
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
elif anton == danik:
	print('Friendship')


n = int(input('\n '))
s = input('\n ')
list_game = list(s)
num_anto = 0
num_danki = 0
for w in list_game:
	if w is 'A':
		num_anto += 1
	else:
		num_danki += 1
if num_anto > num_danki:
	print('Anton')
elif num_anto < num_danki:
	print('Danik')
else:
	print('Friendship')


n = int(input())
Result = input().strip()
Rank = {'Danik': 0, 'Anton': 0}
for i in Result:
	if i == 'D':
		Rank['Danik'] += 1
	else:
		Rank['Anton'] += 1
if Rank['Anton'] != Rank['Danik']:
	Keymax = max(Rank, key=Rank.get)
	print(Keymax)
else:
	print('Friendship')


s = int(input())
n = input()
ac = 0
for i in n:
	if i == 'A':
		ac = ac + 1
dc = len(n) - ac
if ac == dc:
	print('Friendship')
elif ac > dc:
	print('Anton')
else:
	print('Danik')


num = int(input())
str = input()
if num == len(str):
	D = 0
	A = 0
	for i in str:
		if i == 'D':
			D += 1
		else:
			A += 1
if D > A:
	print('Danik')
elif A > D:
	print('Anton')
else:
	print('Friendship')


num = input()
string = input()
a = 0
d = 0
for i in string:
	if i == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


num = input()
parties = input()
players = [0, 0]
for a in parties:
	players[int(a == 'A')] += 1
if players[0] == players[1]:
	print('Friendship')
else:
	print(['Anton', 'Danik'][players[0] > players[1]])


input()
str = input()
n = str.count('A') - str.count('D')
print('Friendship' if n == 0 else 'Danik' if n < 0 else 'Anton')


l = int(input())
a = input()
i = 0
an = 0
dn = 0
while i < l:
	if a[i] == 'A':
		an += 1
	else:
		dn += 1
	i += 1
if an == dn:
	print('Friendship')
elif an > dn:
	print('Anton')
else:
	print('Danik')


x = int(input())
masuk = input()
A = 0
D = 0
for i in range(x):
	if masuk[i] == 'D':
		D += 1
	elif masuk[i] == 'A':
		A += 1
if D == A:
	print('Friendship')
elif D > A:
	print('Danik')
else:
	print('Anton')


n = input()
str = input()
aCount = str.count('A')
dCount = str.count('D')
if aCount == dCount:
	print('Friendship')
elif aCount > dCount:
	print('Anton')
else:
	print('Danik')


n = int(input())
arr = input()
countA = 0
for x in arr:
	if x == 'A':
		countA += 1
half = n / 2
if countA > half:
	print('Anton')
elif countA < half:
	print('Danik')
else:
	print('Friendship')


n = input()
games = input()
anton = 0
danik = 0
for i in games:
	if i == 'A':
		anton += 1
	elif i == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
ant = 0
dan = 0
for ch in s:
	if ch == 'A':
		ant += 1
	else:
		dan += 1
if ant > dan:
	print('Anton')
elif dan > ant:
	print('Danik')
else:
	print('Friendship')


import sys
n = int(input())
inputs = sys.stdin.readline().strip()
a = [x for x in inputs]
(y, z) = (0, 0)
for i in range(len(a)):
	if a[i] == 'A':
		y += 1
	else:
		z += 1
if y > z:
	print('Anton')
elif y == z:
	print('Friendship')
else:
	print('Danik')


input()
y = input()
print('Anton' if y.count('A') > y.count('D') else 'Danik' if y.count('A') < y.count('D') else 'Friendship')


games = int(input())
streak = input()
winsA = 0
winsD = 0
for i in streak:
	if i == 'A':
		winsA += 1
	if i == 'D':
		winsD += 1
if winsA > winsD:
	print('Anton')
elif winsD > winsA:
	print('Danik')
elif winsA == winsD:
	print('Friendship')


n = input()
s = input()
A = []
for i in s:
	A.append(i)
x1 = A.count('A')
x2 = A.count('D')
if x1 > x2:
	print('Anton')
elif x1 < x2:
	print('Danik')
else:
	print('Friendship')


numero = int(input())
nome = str(input())
anton = 0
danik = 0
for letra in nome:
	if letra == 'A':
		anton += 1
	elif letra == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
n2 = input()
n1 = n2[:n]
s = n1.count('A')
w = n1.count('D')
if s > w:
	print('Anton')
if s < w:
	print('Danik')
if s == w:
	print('Friendship')


input()
games = input()
anton = 0
danik = 0
for ch in games:
	if ch == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


input()
res = 0
for char in input():
	if char == 'A':
		res += 1
	else:
		res -= 1
if res > 0:
	print('Anton')
elif res == 0:
	print('Friendship')
else:
	print('Danik')


n = input()
a = str(input())
x = a.count('A')
y = a.count('D')
if x == y:
	print('Friendship')
elif x > y:
	print('Anton')
else:
	print('Danik')


n = int(input())
s = input()
na = s.count('A')
nd = n - na
if na > nd:
	print('Anton')
elif nd > na:
	print('Danik')
else:
	print('Friendship')


a = int(input())
b = input()
c1 = b.count('A')
c2 = b.count('D')
if c1 > c2:
	print('Anton')
elif c1 == c2:
	print('Friendship')
else:
	print('Danik')


n = int(input())
u = input()
z = len(u)
p = u.count('A')
q = u.count('D')
if p > q:
	print('Anton')
elif q > p:
	print('Danik')
elif p == q:
	print('Friendship')


al = int(input())
al = al // 2
a = 0
d = 0
s = input()
for word in s:
	if word == 'A':
		a += 1
	else:
		d += 1
	if a > al:
		print('Anton')
		break
	elif d > al:
		print('Danik')
		break
if a == d:
	print('Friendship')


quant = int(input())
people = str(input())
Anton = []
Danik = []
for i in range(0, len(people)):
	if people[i] == 'A':
		Anton.append(people[i])
	if people[i] == 'D':
		Danik.append(people[i])
if len(Anton) > len(Danik):
	print('Anton')
elif len(Anton) < len(Danik):
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
c = 0
d = 0
for i in s:
	if i is 'A':
		c += 1
	elif i is 'D':
		d += 1
if c > d:
	print('Anton')
elif c < d:
	print('Danik')
elif c == d:
	print('Friendship')


N = int(input())
S = input()
anton = 0
danik = 0
for i in range(0, N):
	if S[i] == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


def main():
	_ = input()
	games = input()
	danik = games.count('D')
	anton = games.count('A')
	print('Friendship' if danik == anton else 'Danik' if danik > anton else 'Anton')
main()


x = int(input())
arr = list(map(str, input().split()[:x]))
newlst = []
for i in range(len(arr)):
	newlst += arr[i]
anton = 0
danik = 0
for i in range(len(newlst)):
	if newlst[i] == 'A':
		anton += 1
	elif newlst[i] == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
elif anton == danik:
	print('Friendship')


_ = input()
s = input()
(a, b) = (len(s.split('A')), len(s.split('D')))
print(['Anton', 'Danik', 'Friendship'][(a == b) + (a <= b)])


a = int(input())
b = str(input())
v = [i for i in b if i == 'D']
c = [i for i in b if i == 'A']
if len(v) > len(c):
	print('Danik')
if len(v) < len(c):
	print('Anton')
if len(v) == len(c):
	print('Friendship')


n = int(input())
l = list(map(str, input()))
c = l.count('A')
d = l.count('D')
if c > d:
	print('Anton')
elif c < d:
	print('Danik')
else:
	print('Friendship')


rounds = input()
winners = input()

def victory(anton, danik):
	if anton > danik:
		print('Anton\n')
	elif danik > anton:
		print('Danik\n')
	else:
		print('Friendship\n')
a = winners.count('A')
d = winners.count('D')
victory(a, d)


input()
z = input()
print('Friendship' if z.count('A') == z.count('D') else 'Anton' if z.count('A') > z.count('D') else 'Danik')


n = int(input())
s = input()
an = 'Anton'
da = 'Danik'
tie = 'Friendship'
(ac, dc) = (0, 0)
for i in s:
	if i == 'A':
		ac += 1
	elif i == 'D':
		dc += 1
if ac > dc:
	print(an)
elif dc > ac:
	print(da)
else:
	print(tie)


games = int(input())
winnings = input()
if winnings.count('A') > winnings.count('D'):
	print('Anton')
elif winnings.count('A') < winnings.count('D'):
	print('Danik')
else:
	print('Friendship')


try:
	n = int(input())
	s = input()
	Anton = 0
	Danik = 0
	for e in s:
		if e == 'A':
			Anton += 1
		elif e == 'D':
			Danik += 1
	if Anton > Danik:
		print('Anton')
	elif Danik > Anton:
		print('Danik')
	else:
		print('Friendship')
except Exception:
	pass


x = input()
m = input()
a = m.count('A')
b = m.count('D')
if a > b:
	print('Anton')
elif a == b:
	print('Friendship')
else:
	print('Danik')


class chess:

	def judge(self, n, s):
		med = n / 2
		A = 0
		for ch in s:
			if 'A' == ch:
				A += 1
		if A > med:
			return 'Anton'
		elif A == med:
			return 'Friendship'
		else:
			return 'Danik'
c = chess()
print(c.judge(int(input()), input()))


s = input()
n = input()
anton = n.count('A')
danik = n.count('D')
if anton > danik:
	print('Anton')
elif anton == danik:
	print('Friendship')
else:
	print('Danik')


import sys
n = int(input())
s = input()
a = 0
a = int(a)
d = 0
d = int(d)
for x in range(0, n):
	if s[x] == 'A':
		a = a + 1
	else:
		d = d + 1
if d == a:
	print('Friendship')
	sys.exit
elif d > a:
	print('Danik')
else:
	print('Anton')


n = int(input())
s = input()
l = []
for i in s:
	l.append(i)
if l.count('A') / n > 0.5:
	print('Anton')
elif l.count('A') / n < 0.5:
	print('Danik')
else:
	print('Friendship')


import sys
n = int(input())
sequence = str(input())
win_A = sequence.replace('D', '')
win_D = sequence.replace('A', '')
if len(win_A) == len(win_D):
	answer = 'Friendship'
elif len(win_A) > len(win_D):
	answer = 'Anton'
elif len(win_A) < len(win_D):
	answer = 'Danik'
print(answer)


import sys
n = int(input())
winners = input()
count = winners.count('A')
winner = ''
if count > n / 2:
	winner = 'Anton'
elif count == n / 2:
	winner = 'Friendship'
else:
	winner = 'Danik'
print(winner)


n = int(input())
a = input()
cnt = a.count('A')
cnt1 = a.count('D')
if cnt > cnt1:
	print('Anton')
elif cnt < cnt1:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
a = sum(map(lambda c: c == 'A', s))
d = n - a
if a == d:
	print('Friendship')
elif a > d:
	print('Anton')
else:
	print('Danik')


from typing import List
from collections import Counter

class Chess:

	def who_won(self):
		no_of_games = input()
		result = input()
		countr = Counter(result)
		no_of_wins_for_anton = 0
		no_of_wins_for_danik = 0
		if 'A' in countr:
			no_of_wins_for_anton = countr['A']
		if 'D' in countr:
			no_of_wins_for_danik = countr['D']
		if no_of_wins_for_anton == no_of_wins_for_danik:
			print('Friendship')
		elif no_of_wins_for_anton > no_of_wins_for_danik:
			print('Anton')
		else:
			print('Danik')
chess = Chess()
chess.who_won()


a = int(input())
b = str(input())
k = 0
l = 0
for x in b:
	if x == 'A':
		k += 1
	else:
		l += 1
if k > l:
	print('Anton')
elif k == l:
	print('Friendship')
else:
	print('Danik')


x = int(input())
y = input()
count = 0
for i in y:
	if i == 'A':
		count += 1
if count > x / 2:
	print('Anton')
elif count < x / 2:
	print('Danik')
elif count == x / 2:
	print('Friendship')


n = int(input())
games = list(input())
if games.count('A') > len(games) / 2:
	print('Anton')
elif games.count('A') < len(games) / 2:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
c_A = 0
c_D = 0
for j in range(0, len(s)):
	if s[j] == 'A':
		c_A += 1
	if s[j] == 'D':
		c_D += 1
if c_A > c_D:
	print('Anton')
if c_D > c_A:
	print('Danik')
if c_A == c_D:
	print('Friendship')


_ = int(input())
results = list(input())
score = 0
for result in results:
	if result == 'A':
		score += 1
	else:
		score -= 1
if score > 0:
	print('Anton')
elif score < 0:
	print('Danik')
else:
	print('Friendship')


n = int(input())
Acount = 0
Dcount = 0
string = str(input())
for i in string:
	if i == 'A':
		Acount = Acount + 1
	else:
		Dcount = Dcount + 1
if Acount > Dcount:
	print('Anton')
elif Dcount > Acount:
	print('Danik')
else:
	print('Friendship')


n = int(input(''))
string = str(input(''))
c_a = 0
c_d = 0
for items in string:
	if items == 'A':
		c_a = c_a + 1
	elif items == 'D':
		c_d = c_d + 1
if c_a > c_d:
	print('Anton', end='')
elif c_a < c_d:
	print('Danik', end='')
else:
	print('Friendship', end='')


n = int(input())
s = str(input())
d = 0
a = 0
for i in range(len(s)):
	if s[i] == 'D':
		d += 1
	else:
		a += 1
if d > a:
	res = 'Danik'
elif a > d:
	res = 'Anton'
else:
	res = 'Friendship'
print(res)


juego = int(input())
datos = str(input())
contadorA = 0
contadorD = 0
for j in datos:
	if j == 'A':
		contadorA += 1
	elif j == 'D':
		contadorD += 1
if contadorD > contadorA:
	print('Danik')
elif contadorA > contadorD:
	print('Anton')
else:
	print('Friendship')


n = int(input())
a = input()
n1 = a.count('A')
n2 = a.count('D')
if n1 > n2:
	print('Anton')
elif n2 > n1:
	print('Danik')
else:
	print('Friendship')


games = input()
results = input()
count_an = 0
count_da = 0
for result in results:
	if result == 'A':
		count_an += 1
	elif result == 'D':
		count_da += 1
if count_an > count_da:
	print('Anton')
elif count_an < count_da:
	print('Danik')
else:
	print('Friendship')


count_of_games = int(input())
winners_of_each_games = list(input().upper())
length = len(winners_of_each_games)
a = []
d = []
for winner in range(length):
	if winners_of_each_games[winner] == 'A':
		a.append(winners_of_each_games[winner])
	else:
		d.append(winners_of_each_games[winner])
if len(a) > len(d):
	print('Anton')
elif len(d) > len(a):
	print('Danik')
if len(a) == len(d):
	print('Friendship')


def main():
	N = int(input())
	S = input()
	A = 0
	D = 0
	for x in S:
		if x == 'A':
			A += 1
		else:
			D += 1
	if A > D:
		print('Anton')
	elif A == D:
		print('Friendship')
	else:
		print('Danik')
main()


games = int(input())
results = input()
anton_wins = 0
for result in results:
	if result == 'A':
		anton_wins += 1
	else:
		anton_wins -= 1
if anton_wins > 0:
	print('Anton')
elif anton_wins == 0:
	print('Friendship')
else:
	print('Danik')


input()
string = input()
anton = 0
danik = 0
for letter in string:
	if letter == 'A':
		anton += 1
	elif letter == 'D':
		danik += 1
if danik > anton:
	print('Danik')
elif anton > danik:
	print('Anton')
elif anton == danik:
	print('Friendship')


k = int(input())
a = input()
c = a.count('A')
d = a.count('D')
if c > d:
	print('Anton')
elif c < d:
	print('Danik')
else:
	print('Friendship')


n = []
i = 0
while i < 2:
	item = input()
	n.append(item)
	i = i + 1
x = n[1]
j = 0
for letter in x:
	if 'A' in letter:
		j = j + 1
if j == len(x) / 2:
	print('Friendship')
elif j < len(x) / 2:
	print('Danik')
else:
	print('Anton')


numero = input('')
datos = input('')
Anton = datos.count('A')
Danik = datos.count('D')
if Anton > Danik:
	print('Anton')
elif Anton < Danik:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
count_A = s.count('A')
count_D = s.count('D')
if count_D == count_A:
	print('Friendship')
else:
	print(['Danik', 'Anton'][count_A > count_D])


n = int(input())
s = input()
s = list(s)
lsta = []
lstd = []
for ele in s:
	if ele == 'A':
		lsta.append(ele)
	else:
		lstd.append(ele)
if len(lsta) > len(lstd):
	print('Anton')
elif len(lsta) < len(lstd):
	print('Danik')
else:
	print('Friendship')


n = int(input())
d = [i for i in input() if i == 'D']
if n - len(d) > len(d):
	print('Anton')
elif n - len(d) < len(d):
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = len(input().replace('D', ''))
d = n - a
print('Anton' * (a > d) + 'Danik' * (d > a) + 'Friendship' * (a == d))


input()
games = input()
games_anton_won = 0
games_danik_won = 0
for i in games:
	if i == 'A':
		games_anton_won += 1
	else:
		games_danik_won += 1
if games_anton_won > games_danik_won:
	print('Anton')
elif games_anton_won < games_danik_won:
	print('Danik')
else:
	print('Friendship')


n = int(input())
parties = input()
score = 0
for c in parties:
	score += int(c == 'A') - int(c == 'D')
output = 'Anton' * int(score > 0) + 'Danik' * int(score < 0) + 'Friendship' * int(score == 0)
print(output)


games = input()
winners = input()
a = 0
d = 0
for i in winners:
	if i == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = input()
d = 0
a = 0
for _ in range(1):
	s = str(input())
	for i in s:
		if i is 'D':
			d += 1
		else:
			a += 1
if d > a:
	print('Danik')
elif a > d:
	print('Anton')
else:
	print('Friendship')


n = int(input())
str = list(input())
aWin = 0
for x in str:
	if x == 'A':
		aWin += 1
if aWin > n - aWin:
	print('Anton')
elif aWin < n - aWin:
	print('Danik')
else:
	print('Friendship')


n = int(input())
cnt = 0
cnt1 = 0
s = input()
for i in range(n):
	if s[i] == 'A':
		cnt += 1
	else:
		cnt1 += 1
if cnt > cnt1:
	print('Anton')
if cnt < cnt1:
	print('Danik')
if cnt == cnt1:
	print('Friendship')


n = input()
s = input()
(count_A, count_D) = (0, 0)
for i in s:
	if i == 'A':
		count_A += 1
	else:
		count_D += 1
if count_A > count_D:
	print('Anton')
elif count_D > count_A:
	print('Danik')
else:
	print('Friendship')


numberofgames = int(input())
string = str(input())
numberofA = 0
numberofD = 0
for i in range(len(string)):
	if string[i] == 'A':
		numberofA = numberofA + 1
	elif string[i] == 'D':
		numberofD = numberofD + 1
if numberofA > numberofD:
	print('Anton')
elif numberofD > numberofA:
	print('Danik')
else:
	print('Friendship')


a = input()
b = input()
if b.count('D') > len(b) / 2:
	print('Danik')
elif b.count('D') < len(b) / 2:
	print('Anton')
else:
	print('Friendship')


f = int(input())
x = input()
c = 0
d = 0
for i in x:
	if i.count('A'):
		c += 1
	if i.count('D'):
		d += 1
if c > d:
	print('Anton')
elif d > c:
	print('Danik')
else:
	print('Friendship')


l = input()
b = input()
a = b.count('A')
d = b.count('D')
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
winners = [c for c in input() if c == 'A']
a_win = len(winners)
d_win = n - a_win
if a_win > d_win:
	print('Anton')
elif a_win < d_win:
	print('Danik')
else:
	print('Friendship')


a = int(input())
a = 0
k = 0
s = str(input())
for i in s:
	if i == 'A':
		a += 1
	else:
		k += 1
if a > k:
	print('Anton')
elif a < k:
	print('Danik')
else:
	print('Friendship')


(n, s) = (int(input()), input())
awon = s.count('A')
dwon = n - awon
if awon > dwon:
	print('Anton')
elif dwon > awon:
	print('Danik')
else:
	print('Friendship')


import sys, os.path
if os.path.exists('in.txt'):
	sys.stdin = open('in.txt', 'r')
	sys.stdout = open('out.txt', 'w')
n = int(input())
s = input()
if s.count('A') > s.count('D'):
	print('Anton')
elif s.count('A') < s.count('D'):
	print('Danik')
elif s.count('A') == s.count('D'):
	print('Friendship')


x = int(input())
a = input()
c = 0
v = 0
for i in range(x):
	if a[i] == 'A':
		c += 1
	else:
		v += 1
if c > v:
	print('Anton')
elif v > c:
	print('Danik')
elif v == c:
	print('Friendship')


num = int(input())
game = input()
anton = 0
danial = 0
for character in game:
	if character == 'A':
		anton += 1
	else:
		danial += 1
if anton > danial:
	print('Anton')
elif anton < danial:
	print('Danik')
else:
	print('Friendship')


from collections import Counter
n = int(input())
sentence = input()
t1 = Counter(list(sentence))['A']
t2 = Counter(list(sentence))['D']
if t1 > t2:
	print('Anton')
elif t2 > t1:
	print('Danik')
elif t1 == t2:
	print('Friendship')


n = int(input())
result = input()
aCount = dCount = 0
for ch in result:
	if ch == 'A':
		aCount += 1
	else:
		dCount += 1
if aCount > dCount:
	print('Anton')
elif dCount > aCount:
	print('Danik')
else:
	print('Friendship')


N = int(input())
results = input()
if results.count('A') > results.count('D'):
	print('Anton')
elif results.count('D') > results.count('A'):
	print('Danik')
else:
	print('Friendship')


a = int(input())
b = input()
k = 0
for i in range(a):
	f = b[i]
	if f == 'A':
		k += 1
	if f == 'D':
		k -= 1
if k == 0:
	print('Friendship')
if k > 0:
	print('Anton')
if k < 0:
	print('Danik')


def countNumberOfOccurrences(lists, a):
	numberofchar = 0
	for i in range(0, n):
		if lists[i] == a:
			numberofchar += 1
	return numberofchar
import sys
input = sys.stdin.readline
n = int(input())
GamesPlayed = input()
antonWin = countNumberOfOccurrences(GamesPlayed, 'A')
DanikWin = countNumberOfOccurrences(GamesPlayed, 'D')
if antonWin > DanikWin:
	print('Anton')
elif DanikWin > antonWin:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
As = s.count('A')
Bs = s.count('D')
if As > Bs:
	print('Anton')
elif Bs > As:
	print('Danik')
else:
	print('Friendship')


masukan = int(input())
masukan1 = input()
d = 0
a = 0
for i in range(len(masukan1)):
	if masukan1[i] == 'D':
		d += 1
	if masukan1[i] == 'A':
		a += 1
if d < a:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
h = 0
k = 0
for i in range(len(s)):
	if s[i] == 'A':
		k += 1
	else:
		h += 1
if k > h:
	print('Anton')
elif k < h:
	print('Danik')
else:
	print('Friendship')


N = int(input())
games = list(input())
games.sort()
if N % 2 == 0:
	if games[N // 2] == 'A':
		print('Anton')
	elif games[N // 2 - 1] == 'D':
		print('Danik')
	else:
		print('Friendship')
elif games[N // 2] == 'A':
	print('Anton')
else:
	print('Danik')


n = int(input())
value = 0
s = input()
danik = 0
for i in range(n):
	if s[i] == 'D':
		danik += 1
if int(len(s)) / 2 == danik and int(len(s)) % 2 == 0:
	print('Friendship')
elif int(len(s)) / 2 < danik:
	print('Danik')
else:
	print('Anton')


n = input()
g = input()
a = [i for i in g if i == 'A']
d = [j for j in g if j == 'D']
if len(a) > len(d):
	print('Anton')
elif len(d) > len(a):
	print('Danik')
else:
	print('Friendship')


num = int(input())
names = input()
an = 0
da = 0
for i in range(num):
	if names[i] == 'A':
		an += 1
	else:
		da += 1
if an > da:
	print('Anton')
elif an == da:
	print('Friendship')
else:
	print('Danik')


from sys import stdout
games = int(input()) / 2
aWins = input().count('A')
if aWins > games:
	stdout.write('Anton')
elif aWins < games:
	stdout.write('Danik')
else:
	stdout.write('Friendship')


n = int(input())
s = input()
x = list(s)
c = 0
p = 0
for i in x:
	if i == 'A':
		c = c + 1
	elif i == 'D':
		p = p + 1
if c > p:
	print('Anton')
elif c < p:
	print('Danik')
else:
	print('Friendship')


x = int(input())
str = input()
d = 0
a = 0
l = len(str)
for i in range(l):
	if str[i] == 'D':
		d += 1
	elif str[i] == 'A':
		a += 1
if d > a:
	print('Danik')
elif a > d:
	print('Anton')
else:
	print('Friendship')


n = int(input())
liste = list(input())
anton = 0
danik = 0
for elem in liste:
	if elem == 'A':
		anton += 1
	else:
		danik += 1
if anton == danik:
	print('Friendship')
elif anton > danik:
	print('Anton')
else:
	print('Danik')


n = int(input())
s = str(input())
count = 0
mid = len(s) / 2
for i in range(len(s)):
	if s[i] == 'D':
		count = count + 1
if mid > count:
	print('Anton')
elif mid < count:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
A_count = 0
D_count = 0
for i in s:
	if i == 'A':
		A_count += 1
	else:
		D_count += 1
if A_count > D_count:
	print('Anton')
elif A_count < D_count:
	print('Danik')
else:
	print('Friendship')


a = int(input())
cA = 0
cD = 0
for i in input():
	if i == 'A':
		cA += 1
	if i == 'D':
		cD += 1
if cD > cA:
	print('Danik')
elif cA > cD:
	print('Anton')
else:
	print('Friendship')


n = int(input())
x = str(input())
a = 0
b = 0
for i in range(len(x)):
	if x[i] == 'A':
		a += 1
	else:
		b += 1
if a > b:
	print('Anton')
elif b > a:
	print('Danik')
else:
	print('Friendship')


def anton_danik(wns):
	(a, d) = (0, 0)
	for i in wns:
		if i == 'A':
			a += 1
		else:
			d += 1
	if a > d:
		print('Anton')
	elif d > a:
		print('Danik')
	else:
		print('Friendship')
n = int(input().strip(' '))
wns = input().strip(' ')
anton_danik(wns)


input()
l = list(input())
if l.count('A') > l.count('D'):
	print('Anton')
elif l.count('A') == l.count('D'):
	print('Friendship')
else:
	print('Danik')


def solve(n):
	a = d = 0
	for x in n:
		if x == 'A':
			a += 1
		else:
			d += 1
	if a > d:
		return 'Anton'
	if a < d:
		return 'Danik'
	return 'Friendship'
input()
n = input()
print(solve(n))


boosted = input('')
games = input('')
anton_win = games.count('A')
danik_win = games.count('D')
if anton_win > danik_win:
	print('Anton')
elif anton_win == danik_win:
	print('Friendship')
else:
	print('Danik')


n = int(input())
p = input()
count = 0
for i in p:
	if i == 'A':
		count += 1
if count > len(p) - count:
	print('Anton')
elif count < len(p) - count:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
dwin = 0
awin = 0
for i in range(0, n):
	if s[i] == 'D':
		dwin += 1
	else:
		awin += 1
if awin > dwin:
	print('Anton')
elif awin < dwin:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
a = [s[i] == 'A' for i in range(0, n)]
b = [0 for i in range(0, n)]
for i in range(0, n):
	if a[i]:
		b[i] = 1
	else:
		b[i] = 0
A = sum(b)
D = n - A
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


import sys
num_games = int(sys.stdin.readline().strip())
results = sys.stdin.readline().strip()
danik_wins = 0
for i in range(num_games):
	if results[i] == 'D':
		danik_wins += 1
anton_wins = num_games - danik_wins
if danik_wins > anton_wins:
	print('Danik')
elif anton_wins > danik_wins:
	print('Anton')
else:
	print('Friendship')


class Game:

	def __init__(self, word, n):
		a = 0
		d = 0
		for i in range(0, n):
			if word[i] == 'A':
				a += 1
			elif word[i] == 'D':
				d += 1
		if a == d:
			print('Friendship')
		elif a < d:
			print('Danik')
		elif d < a:
			print('Anton')
n = int(input())
word = str(input())
p = Game(word, n)


n = input()
lst = input()
(one, sec) = (0, 0)
for i in lst:
	if i == 'A':
		one += 1
	else:
		sec += 1
if one > sec:
	print('Anton')
elif one == sec:
	print('Friendship')
else:
	print('Danik')


n = input()
s = input()
l = list(s)
a = l.count('A')
d = l.count('D')
if a > d:
	print('Anton', end='')
elif d > a:
	print('Danik', end='')
else:
	print('Friendship', end='')


R = lambda : map(int, input().split())
n = int(input())
s = input()
countA = s.count('A')
countD = n - countA
if countA > countD:
	print('Anton')
elif countD > countA:
	print('Danik')
else:
	print('Friendship')


n = int(input())
outcome = list(input())
Anton = outcome.count('A')
if Anton > n - Anton:
	print('Anton')
elif Anton == n - Anton:
	print('Friendship')
else:
	print('Danik')


x = int(input())
y = input()
i = 0
a = 0
d = 0
output = 'Friendship'
while i < x:
	if y[i] == 'D':
		d += 1
	elif y[i] == 'A':
		a += 1
	i += 1
if a > d:
	output = 'Anton'
elif d > a:
	output = 'Danik'
print(output)


def in_ls(name_type, string):
	string = string.split()
	string = map(name_type, string)
	string = list(string)
	return string
n = int(input())
s = input()
count_a = 0
for i in s:
	if i == 'A':
		count_a += 1
count_d = len(s) - count_a
if count_d > count_a:
	print('Danik')
	exit(0)
if count_a > count_d:
	print('Anton')
	exit(0)
print('Friendship')


n = int(input())
a = input()
(an, da) = (0, 0)
for i in a:
	if i == 'D':
		da += 1
	else:
		an += 1
if da > an:
	print('Danik')
elif an > da:
	print('Anton')
else:
	print('Friendship')


T = int(input())
AD = str(input())
A = 0
D = 0
for i in range(T):
	if AD[i] == 'A':
		A += 1
	elif AD[i] == 'D':
		D += 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
elif D == A:
	print('Friendship')


x1 = input()
x2 = input()
A = D = 0
for i in range(len(x2)):
	if x2[i] == 'A':
		A = A + 1
	elif x2[i] == 'D':
		D = D + 1
if A > D:
	print('Anton')
if A < D:
	print('Danik')
elif A == D:
	print('Friendship')


n = input()
try:
	num = int(n)
except:
	print('Error')
str = input()
Anton = 0
Danik = 0
i = 0
while num > 0:
	if str[i] == 'A':
		Anton = Anton + 1
	elif str[i] == 'D':
		Danik = Danik + 1
	num = num - 1
	i = i + 1
if Danik > Anton:
	print('Danik')
elif Anton > Danik:
	print('Anton')
else:
	print('Friendship')


t = int(input())
n = input()
a = []
a = list(n)
x = 0
y = 0
for i in range(len(a)):
	if a[i] == 'A':
		x += 1
	else:
		y = y + 1
if x > y:
	print('Anton')
elif y > x:
	print('Danik')
else:
	print('Friendship')


n = int(input())
record = list(input().upper())
danik = 0
anton = 0
for element in record:
	if element == 'D':
		danik += 1
	elif element == 'A':
		anton += 1
if danik > anton:
	print('Danik')
elif danik < anton:
	print('Anton')
else:
	print('Friendship')


n = int(input())
s = input()
anton_wins = 0
danik_wins = 0
for ch in s:
	if ch == 'A':
		anton_wins += 1
	else:
		danik_wins += 1
if anton_wins > danik_wins:
	print('Anton')
elif anton_wins < danik_wins:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
s = list(s)
c = set(s)
q = list(c)
x = 0
y = 0
for i in range(len(q)):
	if q[i] == 'A':
		x = s.count('A')
	elif q[i] == 'D':
		y = s.count('D')
if x > y:
	print('Anton')
elif x < y:
	print('Danik')
elif x == y:
	print('Friendship')


n = int(input())
i = 0
for j in input():
	if j == 'A':
		i += 1
print([['Friendship', 'Danik'][i != n - i], 'Anton'][i > n - i])


uselessVar = int(input())
list1 = list(input())
anton = 0
danik = 0
for i in list1:
	if i == 'A':
		anton += 1
	elif i == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
ip = input()
i = 0
countA = countD = 0
if n % 2 == 0:
	half = int(n / 2)
	while i < n:
		if ip[i] == 'A':
			countA += 1
			if countA > half:
				print('Anton')
				exit()
		else:
			countD += 1
			if countD > half:
				print('Danik ')
				exit()
		i += 1
	print('Friendship')
else:
	half = int(n / 2) + 1
	while i < n:
		if ip[i] == 'A':
			countA += 1
			if countA == half:
				print('Anton')
				exit()
		else:
			countD += 1
			if countD == half:
				print('Danik')
				exit()
		i += 1


n = map(int, input().split())
a = input().strip()
(anton, danik) = (0, 0)
for letter in a:
	if letter == 'A':
		anton += 1
	else:
		danik += 1
if anton == danik:
	print('Friendship')
elif anton > danik:
	print('Anton')
else:
	print('Danik')


game = int(input())
winner = input('')
n = len(winner)
(d, a) = (0, 0)
for i in range(n):
	if winner[i] == 'D':
		d = d + 1
	else:
		a = a + 1
if a > d:
	print('Anton')
elif a == d:
	print('Friendship')
else:
	print('Danik')


from math import *
from sys import *
from queue import *
n = int(input())
s = input()
a = 0
d = 0
for i in s:
	if i == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


from sys import stdin
_input = stdin.readline
(_int, _str) = (int, str)

def solution():
	n = _int(_input())
	s = _input().rstrip('\n')
	a = s.count('A')
	d = s.count('D')
	if a == d:
		print('Friendship')
	elif a < d:
		print('Danik')
	else:
		print('Anton')
solution()


(n, c) = (int(input()), 0)
s = str(input())
for i in range(n):
	if s[i] == 'A':
		c += 1
if c > n // 2:
	print('Anton')
elif c == n / 2:
	print('Friendship')
else:
	print('Danik')


def bublesort(a):
	n = len(a)
	fl1 = False
	while not fl1:
		fl1 = True
		for i in range(n - 1):
			if a[i] > a[i + 1]:
				(a[i], a[i + 1]) = (a[i + 1], a[i])
				fl1 = False

def isgood(a):
	k = 0
	for x in a:
		if x == 'a':
			k += 1
	return k > len(a) // 2

def dell(a):
	k = 0
	for x in a:
		if x != 'a':
			return a[:k] + a[k + 1:]
		k += 1

def pl2d(a):
	for t in a:
		for x in t:
			print(x, end=' ')
		print()

def foundm(x, a, row, col):
	for i in range(row):
		for j in range(col):
			if a[i][j] == x:
				return (i, j)

def swaprow(a, n1, n2):
	(a[n1], a[n2]) = (a[n2], a[n1])

def swapcol(a, k1, k2):
	for lst in a:
		swaprow(lst, k1, k2)

def prlist(a):
	for x in a:
		print(x, end=' ')
x = int(input())
a = input()
m = 0
n = 0
for x in a:
	if x == 'A':
		m += 1
	else:
		n += 1
if m > n:
	print('Anton')
elif m < n:
	print('Danik')
else:
	print('Friendship')


input()
s = input()
A = s.count('A')
print('Anton' if max(A, len(s) - A) == A and A != len(s) - A else 'Friendship' if A == len(s) - A else 'Danik')


import sys, os.path
if os.path.exists('input.txt'):
	sys.stdin = open('input.txt', 'r')
	sys.stdout = open('output.txt', 'w')
sys.setrecursionlimit(10 ** 5)

def i():
	return sys.stdin.readline().strip()

def ii():
	return int(sys.stdin.readline())

def li():
	return list(sys.stdin.readline().strip())

def mii():
	return map(int, sys.stdin.readline().split())

def lii():
	return list(map(int, sys.stdin.readline().strip().split()))

def solve():
	a = ii()
	b = li()
	c = b.count('A')
	d = b.count('D')
	if c == d:
		print('Friendship')
	elif c > d:
		print('Anton')
	else:
		print('Danik')
solve()


n = int(input())
s = input()
a = s.count('A')
b = s.count('D')
print([['Friendship', 'Danik'][a < b], 'Anton'][a > b])


r = input
n = int(r()) / 2
d = r()
c = d.count('D')
if c > n:
	print('Danik')
elif c < n:
	print('Anton')
else:
	print('Friendship')


from random import *
from random import *

def summaryRanges(nums):
	if len(nums) == 0:
		return []
	res = []
	Count = 0
	for i in range(1, len(nums)):
		if nums[i] != nums[i - 1] + 1:
			if i - 1 != Count:
				res.append(str(nums[Count]) + '->' + str(nums[i - 1]))
			else:
				res.append(str(nums[i - 1]))
			Count = i
	i = len(nums)
	if i - 1 != Count:
		res.append(str(nums[Count]) + '->' + str(nums[i - 1]))
	else:
		res.append(str(nums[i - 1]))
	return res

def canMeasureWater(x: int, y: int, z: int) -> bool:
	if x > y:
		(x, y) = (y, x)

	def gcd(a, b):
		if b == 0:
			return a
		else:
			return gcd(b, a % b)
	ans = gcd(y, x)
	if ans == 0:
		return z == 0
	return x + y >= z and z % ans == 0

def gcd(a, b):
	if b == 0:
		return a
	return gcd(b, a % b)

def Pour(toJugCap, fromJugCap, d):
	fromJug = fromJugCap
	toJug = 0
	step = 1
	while fromJug is not d and toJug is not d:
		temp = min(fromJug, toJugCap - toJug)
		toJug = toJug + temp
		fromJug = fromJug - temp
		step = step + 1
		if fromJug == d or toJug == d:
			break
		if fromJug == 0:
			fromJug = fromJugCap
			step = step + 1
		if toJug == toJugCap:
			toJug = 0
			step = step + 1
	return step

def minSteps(n, m, d):
	if m > n:
		temp = m
		m = n
		n = temp
	if d % gcd(n, m) is not 0:
		return -1
	return min(Pour(n, m, d), Pour(m, n, d))
from random import *

def numofneighbour(mat, i, j, R, C):
	count = 0
	if i > 0 and mat[i - 1][j]:
		count += 1
	if j > 0 and mat[i][j - 1]:
		count += 1
	if i < R - 1 and mat[i + 1][j]:
		count += 1
	if j < C - 1 and mat[i][j + 1]:
		count += 1
	return count

def findperimeter(mat):
	perimeter = 0
	R = len(mat)
	C = len(mat[0])
	for i in range(0, R):
		for j in range(0, C):
			if mat[i][j]:
				perimeter += 4 - numofneighbour(mat, i, j, R, C)
	return perimeter

def maxNumberOfBalloons(text: str, check: str) -> int:
	a = [0] * 26
	for i in text:
		a[ord(i) - 97] += 1
	Min = 10000
	Count = 1
	check = sorted(check)
	for i in range(1, len(check)):
		if check[i] != check[i - 1]:
			Min = min(Min, a[ord(check[i - 1]) - 97] // Count)
			Count = 1
		else:
			Count += 1
	Min = min(Min, a[ord(check[len(check) - 1]) - 97] // Count)
	return Min

def Solve(s):
	check = []
	for i in range(1, len(s) - 1):
		if s[i] != ' ' and s[i] != ',':
			check.append(s[i])
	return len(set(check))

def lastStoneWeightII(stones) -> int:
	half_sum = sum(stones) // 2
	dp = [[False for _ in range(half_sum + 1)] for _ in range(len(stones))]
	for s in range(half_sum + 1):
		dp[0][s] = stones[0] == s
	for i in range(len(stones)):
		dp[i][0] = True
	for i in range(1, len(stones)):
		for s in range(1, half_sum + 1):
			(take_stone, leave_stone) = (False, False)
			if stones[i] <= s:
				take_stone = dp[i - 1][s - stones[i]]
			leave_stone = dp[i - 1][s]
			dp[i][s] = take_stone or leave_stone
	for s in range(half_sum, -1, -1):
		if dp[-1][s]:
			return abs(sum(stones) - 2 * s)
n = int(input())
s = str(input())
if s.count('A') > s.count('D'):
	print('Anton')
elif s.count('A') < s.count('D'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
final = input()
U = 0
W = 0
for i in final:
	if i == 'A':
		U = U + 1
	else:
		W += 1
if U > W:
	print('Anton')
elif W > U:
	print('Danik')
else:
	print('Friendship')


match = input('')
n = int(match)
s = input('')
length = len(s)
anton = 0
Danik = 0
for i in range(length):
	if s[i] == 'A':
		anton = anton + 1
	elif s[i] == 'D':
		Danik = Danik + 1
if anton > Danik:
	print('Anton')
elif anton == Danik:
	print('Friendship')
else:
	print('Danik')


input()
resultado = input()
a = 0
d = 0
for c in resultado:
	if c == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
k = 0
for i in s:
	if i == 'A':
		k += 1
if 2 * k == n:
	print('Friendship')
elif 2 * k >= n:
	print('Anton')
else:
	print('Danik')


w = int(input())
n = input()
r = 0
for i in n:
	if i == 'A':
		r += 1
if len(n) - r > r:
	print('Danik')
elif len(n) - r < r:
	print('Anton')
else:
	print('Friendship')


_ = input()
res = list(input())
if res.count('A') > res.count('D'):
	print('Anton')
elif res.count('A') < res.count('D'):
	print('Danik')
else:
	print('Friendship')


t = input()
n = input()
list1 = list(n)
sum1 = 0
sum2 = 0
for i in list1:
	if i == 'A':
		sum1 += 1
	elif i == 'D':
		sum2 += 1
if sum1 > sum2:
	print('Anton')
elif sum1 < sum2:
	print('Danik')
else:
	print('Friendship')


def playerWon(player):
	Acount = 0
	Dcount = 0
	for i in player:
		if i == 'A':
			Acount += 1
		if i == 'D':
			Dcount += 1
	if Acount < Dcount:
		return 'Danik'
	if Acount > Dcount:
		return 'Anton'
	return 'Friendship'
n = int(input())
player = input()
print(playerWon(player))


p1 = p2 = int(0)
input()
for x in input():
	p1 += x == 'A'
	p2 += x == 'D'
if p1 == p2:
	print('Friendship')
elif p1 > p2:
	print('Anton')
else:
	print('Danik')


a = input()
data = input()
if data.count('A') == data.count('D'):
	print('Friendship')
else:
	print('Anton' if data.count('A') > data.count('D') else 'Danik')


def letsee(a, d):
	if a > d:
		print('Anton')
		return
	if d > a:
		print('Danik')
		return
	else:
		print('Friendship')
t = int(input())
s = input()
a = s.count('A')
d = s.count('D')
letsee(a, d)


n = int(input())
s = input()
a = 0
for c in s:
	if c == 'A':
		a += 1
if a > n - a:
	print('Anton')
if a == n - a:
	print('Friendship')
if a < n - a:
	print('Danik')


n = int(input())
k = list(str(input()))
if len(k) == n:
	if k.count('A') > k.count('D'):
		print('Anton')
	elif k.count('A') < k.count('D'):
		print('Danik')
	else:
		print('Friendship')


n = input()
s = input().lower()
n = len(s)
a = 0
d = 0
for i in range(n):
	if s[i] == 'a':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


from collections import Counter
T = input()
data = Counter(input())
if data['A'] > data['D']:
	print('Anton')
elif data['A'] < data['D']:
	print('Danik')
else:
	print('Friendship')


n = int(input())
i = input()
a = i.count('A') << 1
print('Anton' if a > n else 'Danik' if a < n else 'Friendship')


n = int(input())
if n >= 1 and n <= 100000:
	s = input()
	if n == len(s):
		c1 = 0
		c2 = 0
		for x in s:
			if x == 'A':
				c1 += 1
			elif x == 'D':
				c2 += 1
			else:
				pass
		if c1 > c2:
			print('Anton')
		elif c2 > c1:
			print('Danik')
		else:
			print('Friendship')


def solution(n, s):
	ans = 0
	for i in s:
		ans += 1 if i == 'A' else 0
	return 'Anton' if ans > n - ans else 'Danik' if ans < n - ans else 'Friendship'
n = int(input())
s = input()
print(solution(n, list(s)))


c = int(input())
s = input()
An = s.count('A')
Da = s.count('D')
if An == Da:
	print('Friendship')
elif An > Da:
	print('Anton')
else:
	print('Danik')


input()
result = input()
times_A_won = result.count('A')
times_D_won = result.count('D')
if times_D_won > times_A_won:
	print('Danik')
elif times_A_won > times_D_won:
	print('Anton')
else:
	print('Friendship')


(_, s) = (input(), input())
cnt_a = s.count('A')
cnt_d = s.count('D')
if cnt_a > cnt_d:
	print('Anton')
elif cnt_a < cnt_d:
	print('Danik')
else:
	print('Friendship')


N = int(input())
s = input()
cA = s.count('A')
cD = s.count('D')
if cA > cD:
	print('Anton')
elif cA == cD:
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = list(input())
danik = 0
anton = 0
for i in s:
	if i == 'D':
		danik += 1
	else:
		anton += 1
if anton == danik:
	print('Friendship')
elif anton > danik:
	print('Anton')
else:
	print('Danik')


n = int(input())
string = input()
countA = string.count('A')
countB = string.count('D')
if countA > countB:
	print('Anton')
elif countA < countB:
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = input()
a = a.upper()
cntA = 0
cntD = 0
n = n - 1
while n >= 0:
	if a[n] == 'A':
		cntA = cntA + 1
	else:
		cntD = cntD + 1
	n = n - 1
if cntA > cntD:
	print('Anton')
elif cntA < cntD:
	print('Danik')
else:
	print('Friendship')


n = input()
s = input()
f = 0
q = 0
for i in s:
	if i == 'A':
		f += 1
	else:
		q += 1
if f > q:
	print('Anton')
elif f < q:
	print('Danik')
elif f == q:
	print('Friendship')


n = int(input())
s = input()
dcount = 0
acount = 0
for word in s:
	if word == 'D':
		dcount += 1
	else:
		acount += 1
if dcount > acount:
	print('Danik')
elif dcount < acount:
	print('Anton')
else:
	print('Friendship')


inp = int(input())
string = str(input())
games = list(string)
if games.count('D') > games.count('A'):
	print('Danik')
elif games.count('D') < games.count('A'):
	print('Anton')
else:
	print('Friendship')


from sys import stdin, stdout
inp = [str(x).rstrip() for x in stdin.readlines()]
games = [x for x in inp[1]]
if games.count('D') > games.count('A'):
	print('Danik')
elif games.count('D') < games.count('A'):
	print('Anton')
else:
	print('Friendship')


n = int(input())
the_string = input()
anton = len([i for i in the_string if i == 'A'])
if anton > n / 2:
	print('Anton')
elif anton == n / 2:
	print('Friendship')
else:
	print('Danik')


n = int(input())
a = input()
ca = a.count('A')
cb = a.count('D')
if ca > cb:
	print('Anton')
elif ca < cb:
	print('Danik')
else:
	print('Friendship')


from collections import Counter
n = int(input())
k = input()
b = Counter(k)
if b['A'] > b['D']:
	print('Anton')
elif b['A'] < b['D']:
	print('Danik')
else:
	print('Friendship')


i = int(input())
s = str(input())
a = 0
d = 0
for index in range(0, i):
	if s[index] == 'A':
		a = a + 1
	else:
		d = d + 1
if a > d:
	print('Anton\n')
elif a < d:
	print('Danik\n')
else:
	print('Friendship\n')


import re
n = int(input())
s = input()
if len(re.findall('A', s)) == len(re.findall('D', s)):
	print('Friendship')
elif len(re.findall('A', s)) > len(re.findall('D', s)):
	print('Anton')
else:
	print('Danik')


n = int(input())
s = input()
aton = 0
dainik = 0
for i in s:
	if i == 'A':
		aton += 1
	if i == 'D':
		dainik += 1
if dainik > aton:
	print('Danik')
elif aton > dainik:
	print('Anton')
else:
	print('Friendship')


chislo = int(input())
imena = input()
anton = 0
danik = 0
for i in imena:
	if i == 'A':
		anton = anton + 1
	elif i == 'D':
		danik = danik + 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
f = 0
c = 0
for i in range(n):
	if s[i] == 'D':
		f += 1
	elif s[i] == 'A':
		c += 1
if f > c:
	print('Danik')
elif c > f:
	print('Anton')
else:
	print('Friendship')


no = int(input(''))
n = input('')
sum1 = 0
sum2 = 0
for i in range(len(n)):
	if n[i] == 'D':
		sum1 += 1
	else:
		sum2 += 1
if sum1 == sum2:
	print('Friendship')
elif sum1 > sum2:
	print('Danik')
else:
	print('Anton')


n = int(input())
s1 = 0
s2 = 0
str1 = input()
for i in str1:
	if i == 'A':
		s1 = s1 + 1
	else:
		s2 = s2 + 1
if s1 > s2:
	print('Anton')
elif s1 < s2:
	print('Danik')
else:
	print('Friendship')


def main():
	n = int(input())
	games = input()
	a = games.count('A')
	d = games.count('D')
	if a > d:
		print('Anton')
	elif d > a:
		print('Danik')
	else:
		print('Friendship')
main()


x = int(input(''))
y = input('')
ca = 0
cd = 0
for o in y:
	if o == 'A':
		ca = ca + 1
	if o == 'D':
		cd = cd + 1
if ca > cd:
	print('Anton')
elif ca < cd:
	print('Danik')
else:
	print('Friendship')


games = int(input())
a = input()
v = a.count('A')
if games - v < v:
	print('Anton')
elif v < games - v:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
l = [str(i) for i in s]
if l.count('A') > l.count('D'):
	print('Anton')
elif l.count('A') < l.count('D'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
freq = dict()
lenS = 0
for c in s:
	if c in freq:
		freq[c] += 1
	else:
		freq[c] = 1
if n <= 1 or len(set(s)) == 1:
	if s[0] == 'A':
		print('Anton')
	else:
		print('Danik')
elif freq['A'] == freq['D']:
	print('Friendship')
elif freq['A'] > freq['D']:
	print('Anton')
else:
	print('Danik')


a = int(input())
Acount = 0
Dcount = 0
asd = input()
for i in asd:
	if i == 'A':
		Acount = Acount + 1
	elif i == 'D':
		Dcount = Dcount + 1
if Acount > Dcount:
	print('Anton')
elif Dcount > Acount:
	print('Danik')
else:
	print('Friendship')


t = input()
s = input()
q = sum([-1 if i == 'D' else 1 for i in s])
if q > 0:
	print('Anton')
elif q < 0:
	print('Danik')
else:
	print('Friendship')


n = int(input())
ANTON = 0
DANCHIK = 0
s = input()
for i in range(len(s)):
	if s[i] == 'A':
		ANTON += 1
	elif s[i] == 'D':
		DANCHIK += 1
if ANTON == DANCHIK:
	print('Friendship')
if ANTON > DANCHIK:
	print('Anton')
if DANCHIK > ANTON:
	print('Danik')


x = input()
res1 = 0
res2 = 0
y = input()
for i in y:
	if i == 'A':
		res1 += 1
	else:
		res2 += 1
if res1 > res2:
	print('Anton')
elif res2 > res1:
	print('Danik')
else:
	print('Friendship')


from collections import Counter
input()
text = input()
c = Counter(text)
(one, two) = (c['A'], c['D'])
if one == two:
	print('Friendship')
elif one > two:
	print('Anton')
else:
	print('Danik')


games = int(input())
string = input()
a = 0
d = 0
for i in string:
	if i == 'A':
		a += 1
		continue
	d += 1
if d > a:
	print('Danik')
elif a > d:
	print('Anton')
else:
	print('Friendship')


n = int(input())
a = str(input())
i = 0
x = 0
y = 0
while i <= len(a) - 1:
	if a[i] == 'A':
		x = x + 1
	else:
		y = y + 1
	i = i + 1
if x > y:
	print('Anton')
elif x < y:
	print('Danik')
else:
	print('Friendship')


nb_games = int(input())
games = input()
score_anton = 0
score_danik = 0
for game in games:
	if game == 'A':
		score_anton += 1
	else:
		score_danik += 1
if score_anton > score_danik:
	print('Anton')
elif score_anton == score_danik:
	print('Friendship')
else:
	print('Danik')


n = int(input())
m = input()
(c, j) = (0, 0)
for i in m:
	if i == 'A':
		c += 1
	else:
		j += 1
if c > j:
	print('Anton')
elif j > c:
	print('Danik')
else:
	print('Friendship')


a = int(input())
b = input().upper()
c = b.count('A')
d = b.count('D')
if c > d:
	print('Anton')
elif c == d:
	print('Friendship')
elif c < d:
	print('Danik')


num = int(input())
matches = input()
anton = matches.count('A')
danik = matches.count('D')
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
reit = input()
x = reit.count('A')
if n - x == x:
	print('Friendship')
elif x > n - x:
	print('Anton')
else:
	print('Danik')


def main():
	n = int(input())
	inp = input()
	a = 0
	for i in range(n):
		a = a + 1 if inp[i] == 'A' else a - 1
	if a > 0:
		print('Anton')
	elif a == 0:
		print('Friendship')
	else:
		print('Danik')
main()


x = int(input())
str1 = str(input())
a = str1.count('A')
d = str1.count('D')
if a < d:
	print('Danik')
elif a > d:
	print('Anton')
elif a == d:
	print('Friendship')


number = int(input())
games = input()
acount = 0
dcount = 0
for i in range(0, number):
	if games[i] == 'A':
		acount += 1
	elif games[i] == 'D':
		dcount += 1
if acount > dcount:
	print('Anton')
elif acount < dcount:
	print('Danik')
else:
	print('Friendship')


x = input()
z = input()
anton = 0
danik = 0
for i in z:
	if i == 'A':
		anton += 1
	if i == 'D':
		danik += 1
if anton > danik:
	print('Anton')
if anton < danik:
	print('Danik')
if anton == danik:
	print('Friendship')


n = int(input())
input1 = input()
count_D = input1.count('D')
count_A = input1.count('A')
if count_D > count_A:
	print('Danik')
elif count_A > count_D:
	print('Anton')
else:
	print('Friendship')


n = int(input())
count = 0
x = input()
for i in range(n):
	if x[i] == 'A':
		count += 1
	else:
		count -= 1
if count > 0:
	print('Anton')
if count < 0:
	print('Danik')
if count == 0:
	print('Friendship')


__author__ = 'Think'
n = int(input())
games = input()
score = {'A': 1, 'D': -1}
total = 0
for i in games:
	total += score[i]
if total > 0:
	print('Anton')
elif total < 0:
	print('Danik')
else:
	print('Friendship')


from collections import Counter

def solve(A):
	M = {'A': 'Anton', 'D': 'Danik'}
	c = Counter(A)
	if c['A'] != c['D']:
		return M[c.most_common(1)[0][0]]
	else:
		return 'Friendship'
_ = int(input())
arr = input()
print(solve(arr))


n = int(input())
l = input()
L = list(l)
if 'D' not in L:
	print('Anton')
else:
	L.sort()
	for i in range(n):
		if L[i] == 'D':
			m = i
			if m > n / 2:
				print('Anton')
			elif m < n / 2:
				print('Danik')
			else:
				print('Friendship')
			break


length = int(input())
x = input()
i = 0
anton = 0
danik = 0
while length != 0:
	if x[i] == 'A':
		anton += 1
	else:
		danik += 1
	length -= 1
	i += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


intt = int(input())
s2 = input()
count = 0
cu = 0
for i in range(intt):
	if s2[i] == 'A':
		count += 1
	else:
		cu += 1
if count == cu:
	print('Friendship')
elif count > cu:
	print('Anton')
else:
	print('Danik')


num_games = int(input())
string_vic = str(input())
a_count = string_vic.count('A')
d_count = string_vic.count('D')
if a_count > d_count:
	print('Anton')
elif d_count > a_count:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
l = list(s)
x1 = 0
x2 = 0
for i in range(n):
	if l[i] == 'A':
		x1 = x1 + 1
	else:
		x2 = x2 + 1
if x1 > x2:
	print('Anton')
elif x1 < x2:
	print('Danik')
else:
	print('Friendship')


n = map(int, input())
s = list(input().upper())
ant = 0
dan = 0
for string in s:
	if string == 'A':
		ant += 1
	elif string == 'D':
		dan += 1
if dan > ant:
	print('Danik')
elif ant > dan:
	print('Anton')
else:
	print('Friendship')


def main():
	n = int(input())
	s = input()
	a = 0
	d = 0
	for c in s:
		if c == 'D':
			d += 1
		else:
			a += 1
	if a < d:
		return 'Danik'
	if a > d:
		return 'Anton'
	return 'Friendship'
print(main())


n = int(input())
if 1 <= n <= 100000:
	st = input()
	a = 0
	b = 0
	i = 0
	while i < n:
		if st[i] == 'A':
			a += 1
		elif st[i] == 'D':
			b += 1
		i += 1
	if a > b:
		print('Anton')
	if a < b:
		print('Danik')
	if a == b:
		print('Friendship')


a = int(input())
b = input()
d = 'D'
d1 = 0
a1 = 'A'
a11 = 0
for i in b:
	if i == d:
		d1 += 1
	if i == a1:
		a11 += 1
if d1 > a11:
	print('Danik')
elif d1 < a11:
	print('Anton')
else:
	print('Friendship')


try:
	n = int(input())
	l = input()
	a = l.count('A')
	d = l.count('D')
	if d > a:
		print('Danik')
	elif a > d:
		print('Anton')
	else:
		print('Friendship')
except:
	pass


def split(word):
	return list(word)
n = int(input())
s = input()
split(s)
(danik_score, anton_score) = (0, 0)
for i in s:
	if i == 'D':
		danik_score += 1
	else:
		anton_score += 1
if danik_score > anton_score:
	print('Danik')
elif danik_score < anton_score:
	print('Anton')
else:
	print('Friendship')


n = int(input())
word = input()
l = []
for item in word:
	l.append(item)
l_a = l.count('A')
l_d = l.count('D')
if l_a > l_d:
	print('Anton')
elif l_d > l_a:
	print('Danik')
elif l_a == l_d:
	print('Friendship')


gamesCount = int(input())
game = input()
a = 0
d = 0
for i in range(0, gamesCount, 1):
	if game[i] == 'A':
		a += 1
	if game[i] == 'D':
		d += 1
if a == d:
	print('Friendship')
if a > d:
	print('Anton')
if d > a:
	print('Danik')


a = int(input())
b = input()
ant = 0
den = 0
for i in b:
	if i == 'A':
		ant += 1
	else:
		den += 1
if ant == den:
	print('Friendship')
elif ant > den:
	print('Anton')
else:
	print('Danik')


(input(), print(['Danik', 'Friendship', 'Anton'][(lambda x: (x > 0) - (x < 0))(sum((1 if c == 'A' else -1 for c in input()))) + 1]))


n = int(input())
a = input()
b = []
c = []
for i in a:
	if i == 'A':
		b.append(i)
	else:
		c.append(i)
if len(b) > len(c):
	print('Anton')
elif len(b) < len(c):
	print('Danik')
else:
	print('Friendship')


def main(match_res):
	a = 0
	d = 0
	for outcome in match_res:
		if outcome == 'A':
			a += 1
		else:
			d += 1
	if a == d:
		return 'Friendship'
	elif a < d:
		return 'Danik'
	else:
		return 'Anton'
input()
match_res = input()
print(main(match_res))


a = input()
s = input()
if s.count('A') > s.count('D'):
	print('Anton')
if s.count('A') == s.count('D'):
	print('Friendship')
if s.count('A') < s.count('D'):
	print('Danik')


_ = input()
x = input()
D_count = x.count('D')
A_count = x.count('A')
if D_count > A_count:
	print('Danik')
elif D_count < A_count:
	print('Anton')
else:
	print('Friendship')


a = int(input())
b = input()
danik = 0
anton = 0
for i in range(len(b)):
	if b[i] == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


u = int(input())
s1 = str(input())
a = s1.count('A')
d = s1.count('D')
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


t = int(input())
ls = input()
a = 0
d = 0
for i in ls:
	if i == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
d = 0
for i in s:
	if i == 'D':
		d += 1
if d > len(s) - d:
	print('Danik')
elif d < len(s) - d:
	print('Anton')
else:
	print('Friendship')


n = int(input())
s = str(input())
a = int()
d = int()
for i in range(n):
	if s[i] == 'A':
		a += 1
	elif s[i] == 'D':
		d += 1
if a == d:
	print('Friendship')
elif a > d:
	print('Anton')
elif a < d:
	print('Danik')


n = int(input())
w = input()
w = list(w)
if w.count('A') > w.count('D'):
	print('Anton')
elif w.count('A') < w.count('D'):
	print('Danik')
elif w.count('A') == w.count('D'):
	print('Friendship')


n = int(input())
s = input()
kd = 0
ka = 0
a = list(s)
for i in range(n):
	if a[i] == 'D':
		kd += 1
	if a[i] == 'A':
		ka += 1
if ka > kd:
	print('Anton')
elif kd > ka:
	print('Danik')
else:
	print('Friendship')


n = input()
w = input()
(a, d) = (0, 0)
for i in w:
	if 'A' is i:
		a += 1
	else:
		d += 1
if a == d:
	print('Friendship')
elif a >= d:
	print('Anton')
else:
	print('Danik')


n = input()
strr = input()
countA = 0
countB = 0
for item in strr:
	if item == 'A':
		countA += 1
	else:
		countB += 1
if countA == countB:
	print('Friendship')
elif countA > countB:
	print('Anton')
else:
	print('Danik')


import sys
n = int(sys.stdin.readline())
l = sys.stdin.readline()
k = l.count('A')
if k > n - k:
	print('Anton')
elif k == n - k:
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = input()
cnta = s.count('A')
cntb = n - cnta
if cnta > cntb:
	print('Anton')
elif cnta == cntb:
	print('Friendship')
else:
	print('Danik')


s = int(input())
a = input()
(b, d) = (a.count('A'), a.count('D'))
print('Anton' if b > d else 'Danik' if b < d else 'Friendship')


n = int(input())
s = input()
k1 = 0
k2 = 0
for i in range(0, len(s)):
	if s[i] == 'A':
		k1 += 1
	else:
		k2 += 1
if k2 < k1:
	print('Anton')
elif k2 == k1:
	print('Friendship')
else:
	print('Danik')


a = input()
s = input()
l = len(s)
suma = 0
sumb = 0
for i in range(0, l):
	if s[i] == 'A':
		suma = suma + 1
	if s[i] == 'D':
		sumb = sumb + 1
if suma > sumb:
	print('Anton')
elif suma < sumb:
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = sorted(input())
print('Anton' if a[n // 2] == 'A' else 'Danik' if a[-(n // 2) - 1] == 'D' else 'Friendship')


from sys import exit as sys_return
anton_wins = danik_wins = 0
amount = int(input())
input_ = input()
for i in range(amount):
	if input_[i] == 'A':
		anton_wins += 1
	else:
		danik_wins += 1
if anton_wins > danik_wins:
	print('Anton')
elif anton_wins < danik_wins:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
a1 = int(s.count('A'))
d1 = n - a1
if int(a1) < int(d1):
	print('Danik')
elif int(a1) > int(d1):
	print('Anton')
else:
	print('Friendship')


n = int(input())
x = str(input())
a = x.count('A')
d = x.count('D')
if a != d:
	if a > d:
		print('Anton')
	else:
		print('Danik')
else:
	print('Friendship')


a = 0
d = 0
n = input()
s = input()
x = 0
while x < len(s):
	if s[x] == 'A':
		a = a + 1
	else:
		d = d + 1
	x = x + 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


def Anton_and_Danik(s):
	A = s.count('A')
	D = s.count('D')
	if A > D:
		print('Anton')
	elif A == D:
		print('Friendship')
	else:
		print('Danik')
n = input()
s = input()
Anton_and_Danik(s)


k = int(input(''))
t = input()
cnt = 0
cut = 0
for i in t:
	if i == 'A':
		cnt += 1
	if i == 'D':
		cut += 1
if cnt > cut:
	print('Anton')
elif cnt < cut:
	print('Danik')
else:
	print('Friendship')


n = int(input())
c = 0
t = 0
m = input()
c = m.count('A')
t = m.count('D')
if c > t:
	print('Anton')
elif c < t:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
an = s.count('A')
da = s.count('D')
if an > da:
	print('Anton')
elif da > an:
	print('Danik')
else:
	print('Friendship')


a = int(input())
b = str(input())
x = b.upper()
y = 0
z = 0
i = 0
while i <= len(b) - 1:
	if x[i] == 'A':
		y = y + 1
	if x[i] == 'D':
		z = z + 1
	i = i + 1
if y > z:
	print('Anton')
elif z > y:
	print('Danik')
else:
	print('Friendship')


n = int(input())
arr = list(map(str, input()))
D = 0
A = 0
for i in arr:
	if i == 'D':
		D += 1
	elif i == 'A':
		A += 1
	else:
		pass
if D > A:
	print('Danik')
elif A > D:
	print('Anton')
elif A == D:
	print('Friendship')
else:
	pass


n = input()
s = input()
counta = 0
countd = 0
counta = s.count('A')
countb = s.count('D')
if counta > countb:
	print('Anton')
elif countb > counta:
	print('Danik')
else:
	print('Friendship')


from collections import deque
import math
n = int(input())
str1 = str(input())
(a, d) = (str1.count('A'), str1.count('D'))
if a == d:
	print('Friendship')
elif a > d:
	print('Anton')
else:
	print('Danik')


n = int(input())
s = input()
m = 0
for i in range(n):
	if s[i] in 'A':
		m = m + 1
if m > n / 2.0:
	print('Anton')
if m < n / 2.0:
	print('Danik')
if m == n / 2.0:
	print('Friendship')


v = 0
b = 0
n = []
s = []
x = int(input())
if 1 <= x <= 100000:
	z = input()
	for c in z:
		s.append(c)
	if len(s) == x:
		for c in z:
			if c == 'A' or c == 'D':
				n.append(c)
			else:
				break
		for m in n:
			if m == 'A':
				v = v + 1
			else:
				b = b + 1
		if v > b:
			print('Anton')
		elif b > v:
			print('Danik')
		else:
			print('Friendship')


N = int(input())
l = input()
(A, D) = (0, 0)
for i in range(N):
	if l[i] == 'A':
		A += 1
	else:
		D += 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


n = int(input())
ln = input()
x = 0.0
for c in ln:
	if c == 'A':
		x = x + 1
if x == n / 2:
	print('Friendship')
elif x > n / 2:
	print('Anton')
else:
	print('Danik')


i = int(input())
s = str(input())
if s.count('A') == s.count('D'):
	print('Friendship')
elif s.count('A') > s.count('D'):
	print('Anton')
else:
	print('Danik')


from collections import Counter

def check(a):
	z = Counter(a)
	if z['A'] > z['D']:
		return 'Anton'
	elif z['A'] < z['D']:
		return 'Danik'
	else:
		return 'Friendship'
n = int(input())
a = input()
print(check(a))


a = input()
b = input()
x = 0
d = {-1: 'Danik', 0: 'Friendship', 1: 'Anton'}
for i in b:
	if i == 'A':
		x += 1
	if i == 'D':
		x -= 1
if x == 0:
	print(d[0])
else:
	print(d[x / abs(x)])


n = input()
x = input()
y = len(x) / 2
count = 0
for i in x:
	if 'D' == i:
		count += 1
if count < y:
	print('Anton')
elif count > y:
	print('Danik')
else:
	print('Friendship')


x = int(input())
c = input()
d = 0
a = 0
for i in range(x):
	if c[i] == 'D':
		d = d + 1
	else:
		a = a + 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


r = eval(input())
w = input()
i = 0
d = 0
a = 0
while i < r:
	if w[i] == 'D':
		d += 1
	else:
		a += 1
	i += 1
if a == d:
	print('Friendship')
elif a > d:
	print('Anton')
else:
	print('Danik')


x = int(input())
y = input()
count1 = y.count('A')
count2 = y.count('D')
if count1 == count2:
	print('Friendship')
elif count1 > count2:
	print('Anton')
else:
	print('Danik')


def main():
	n = int(input())
	b = input()
	a = b.count('A')
	d = b.count('D')
	if a > d:
		print('Anton')
	if d > a:
		print('Danik')
	if d == a:
		print('Friendship')
main()


size = int(input())
string = input()
Anton = 0
Danik = 0
for i in range(0, size):
	if string[i] == 'D':
		Danik += 1
	else:
		Anton += 1
if Anton > Danik:
	print('Anton')
elif Danik > Anton:
	print('Danik')
else:
	print('Friendship')


try:
	n = int(input())
	s = input()
	cnt = 0
	for i in s:
		if i == 'A':
			cnt += 1
	d = n - cnt
	if d == cnt:
		print('Friendship')
	elif cnt < d:
		print('Danik')
	else:
		print('Anton')
except:
	pass


n = int(input())
s = input()
c = s.count('A')
v = s.count('D')
if c < v:
	print('Danik')
elif c > v:
	print('Anton')
elif c == v:
	print('Friendship')


n = int(input())
s = input()
l = len(s)
x = 0
y = 0
for a in range(0, l):
	if s[a] == 'A':
		x = x + 1
	elif s[a] == 'D':
		y = y + 1
if x == y:
	print('Friendship')
elif x > y:
	print('Anton')
else:
	print('Danik')


import math
import os
import random
import re
import sys
total = 0
input()
a = str(input())
b = a.count('A')
c = a.count('D')
if b > c:
	print('Anton')
elif b < c:
	print('Danik')
else:
	print('Friendship')


lose = input()
word = input()
ds = word.count('D')
ass = word.count('A')
if ds > ass:
	print('Danik')
elif ass > ds:
	print('Anton')
else:
	print('Friendship')


games = input()
players = input()
countA = 0
countD = 0
for i in range(int(games)):
	if players[i] == 'A':
		countA += 1
	elif players[i] == 'D':
		countD += 1
if countA > countD:
	print('Anton')
elif countA < countD:
	print('Danik')
else:
	print('Friendship')


import bisect
import sys
import math
t = 1
for _ in range(t):
	n = int(input())
	s = input()
	a = s.count('A')
	b = s.count('D')
	if a > b:
		print('Anton')
	elif b > a:
		print('Danik')
	else:
		print('Friendship')


a = input()
a = int(a)
b = input()
(A, B) = ([], [])
for i in b:
	if i == 'A':
		A.append(i)
	if i == 'D':
		B.append(i)
if len(A) == len(B):
	print('Friendship')
elif len(A) > len(B):
	print('Anton')
elif len(A) < len(B):
	print('Danik')


input()
games = input()
won = {}
for i in ['A', 'D']:
	won[i] = games.count(i)
if won['A'] > won['D']:
	print('Anton')
elif won['A'] < won['D']:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = str(input())
l = list(s)
a = 0
d = 0
for i in l:
	if i == 'A':
		a += 1
	if i == 'D':
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
elif a == d:
	print('Friendship')


test = input()
str = input()
cnt_a = 0
cnt_d = 0
for c in str:
	if c == 'A':
		cnt_a += 1
	else:
		cnt_d += 1
if cnt_a > cnt_d:
	print('Anton')
elif cnt_d > cnt_a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
s1 = s2 = 0
for c in s:
	if c == 'A':
		s1 += 1
	else:
		s2 += 1
if s1 > s2:
	print('Anton')
elif s2 > s1:
	print('Danik')
else:
	print('Friendship')


games = int(input())
s = input()
a = 0
d = 0
for i in range(games):
	if s[i] == 'A':
		a += 1
	elif s[i] == 'D':
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
elif a == d:
	print('Friendship')


number_of_games = int(input())
outcomes = input()
a_friend_score = 0
d_friend_score = 0
for o in outcomes:
	if o == 'A':
		a_friend_score += 1
	else:
		d_friend_score += 1
if a_friend_score == d_friend_score:
	print('Friendship')
elif a_friend_score > d_friend_score:
	print('Anton')
else:
	print('Danik')


from collections import Counter
n = int(input())
x = input()
x = dict(Counter(x))
if len(x) > 1:
	p = x.get('A')
	q = x.get('D')
	if p > q:
		print('Anton')
	elif p < q:
		print('Danik')
	else:
		print('Friendship')
else:
	for (key, value) in x.items():
		if key == 'A':
			print('Anton')
		else:
			print('Danik')


nub = int(input())
a = input()
a = ''.join(str(a).split('D'))
if nub / 2 < len(a):
	print('Anton')
elif nub / 2 > len(a):
	print('Danik')
else:
	print('Friendship')


t = int(input())
won = input()
count1 = 0
count2 = 0
for i in range(len(won)):
	if won[i] == 'A':
		count1 += 1
	else:
		count2 += 1
if count1 > count2:
	print('Anton')
elif count2 > count1:
	print('Danik')
else:
	print('Friendship')


input()
s = input()
a = s.count('A') << 1
print('Anton' if a > len(s) else 'Danik' if a < len(s) else 'Friendship')


n = int(input())
s = str(input().upper())
if n == len(s):
	if s.count('A') > s.count('D'):
		print('Anton')
	elif s.count('A') < s.count('D'):
		print('Danik')
	elif s.count('A') == s.count('D'):
		print('Friendship')


n = int(input())
a = input()
p = a.count('A')
q = a.count('D')
if p > q:
	print('Anton')
elif q > p:
	print('Danik')
else:
	print('Friendship')


from sys import stdin

def main():
	(n,) = stdin_get_ints_from_line()
	s = stdin_get_string_from_line()
	a = 0
	d = 0
	for ss in s:
		if ss == 'A':
			a += 1
		elif ss == 'D':
			d += 1
	if a > d:
		print('Anton')
	elif d > a:
		print('Danik')
	elif a == d:
		print('Friendship')
	return

def stdin_get_ints_from_line():
	return (int(x) for x in stdin.readline().strip().split(' '))

def stdin_get_ints_list_from_line():
	return list((int(x) for x in stdin.readline().strip().split(' ')))

def stdin_get_string_from_line():
	return stdin.readline().strip()
main()


import sys
games = int(input())
aCount = 0
dCount = 0
lst = input()
for i in lst:
	if i == 'A':
		aCount += 1
	else:
		dCount += 1
if aCount > dCount:
	print('Anton')
elif dCount > aCount:
	print('Danik')
else:
	print('Friendship')


n = int(input(''))
s = list(map(list, input('').split()))[:n]
if s[0].count('A') > s[0].count('D'):
	print('Anton')
elif s[0].count('D') > s[0].count('A'):
	print('Danik')
else:
	print('Friendship')


try:
	n = int(input())
	s = input()
	(a, b) = (0, 0)
	l = len(s)
	for i in range(l):
		if s[i] == 'A':
			a += 1
		else:
			b += 1
	if a > b:
		print('Anton')
	elif a == b:
		print('Friendship')
	else:
		print('Danik')
except:
	pass


n = int(input())
a = list(input())
x = a.count('D')
y = a.count('A')
if x > y:
	print('Danik')
elif x < y:
	print('Anton')
else:
	print('Friendship')


n = int(input())
s = input()
number_of_wins_of_A = 0
number_of_wins_of_D = 0
for i in s:
	if i == 'A':
		number_of_wins_of_A += 1
	else:
		number_of_wins_of_D += 1
if number_of_wins_of_A > number_of_wins_of_D:
	print('Anton')
elif number_of_wins_of_D > number_of_wins_of_A:
	print('Danik')
else:
	print('Friendship')


games = int(input())
res = str(input())
va = 0
for l in res:
	if l == 'A':
		va += 1
if len(res) - va > va:
	print('Danik')
elif len(res) - va == va:
	print('Friendship')
else:
	print('Anton')


(anton, danik) = [0, 0]
n = input()
string = input()
for s in string:
	if s == 'A':
		anton += 1
	elif s == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = input()
c = a.count('A')
d = a.count('D')
if len(a) == n and c > d:
	print('Anton')
elif len(a) == n and c < d:
	print('Danik')
elif len(a) == n and c == d:
	print('Friendship')
else:
	print('error')


import re
from collections import Counter
number = int(input())
win_counts = Counter(re.findall('[A|D]', input()))
if win_counts['A'] > win_counts['D']:
	print('Anton')
elif win_counts['A'] < win_counts['D']:
	print('Danik')
else:
	print('Friendship')


n = input()
try:
	n = int(n)
	s = input()
	if n > 0 and n < 1000001 and (n == len(s)):
		a = 0
		d = 0
		for char in s:
			if char == 'A':
				a += 1
			elif char == 'D':
				d += 1
		if a > d:
			print('Anton')
		elif d > a:
			print('Danik')
		else:
			print('Friendship')
except:
	print('invalid')


x = int(input())
data = input()
a = d = 0
for c in data:
	if c == 'A':
		a += 1
	elif c == 'D':
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = input()
l = [i for i in input()]
a = 0
d = 0
for i in l:
	if i == 'A':
		a = a + 1
	if i == 'D':
		d = d + 1
if a > d:
	print('Anton')
if d > a:
	print('Danik')
if a == d:
	print('Friendship')


import collections
a = int(input())
b = input()
c = collections.Counter(b).most_common(2)
if len(c) == 1:
	if c[0][0] == 'D':
		print('Danik')
	else:
		print('Anton')
elif c[0][1] == c[1][1]:
	print('Friendship')
elif c[0][0] == 'D':
	print('Danik')
else:
	print('Anton')


n = int(input())
l = input()
Ant = 0
Dan = 0
for i in l:
	if i == 'A':
		Ant += 1
	elif i == 'D':
		Dan += 1
if Dan < Ant:
	print('Anton')
elif Dan > Ant:
	print('Danik')
else:
	print('Friendship')


a = int(input())
b = str(input())
cnt_a = 0
cnt_d = 0
for i in range(len(b)):
	if b[i] == 'A':
		cnt_a += 1
	else:
		cnt_d += 1
if cnt_a > cnt_d:
	print('Anton')
elif cnt_a < cnt_d:
	print('Danik')
else:
	print('Friendship')


import sys

def rl():
	return sys.stdin.readline().strip()

def rn():
	return list(map(int, sys.stdin.readline().strip().split()))

def ri():
	return map(int, sys.stdin.readline().strip().split())

def rln(n):
	l = [None] * n
	for i in range(n):
		l[i] = int(rl())
	return l
n = int(input())
tab = input()
cnt_a = tab.count('A')
cnt_b = n - cnt_a
if cnt_a == cnt_b:
	print('Friendship')
elif cnt_a > cnt_b:
	print('Anton')
else:
	print('Danik')


s = input()
n = input()
m = 0
p = 0
for i in n:
	if i in 'A':
		m += 1
	else:
		p += 1
if p == m:
	print('Friendship')
if m > p:
	print('Anton')
if m < p:
	print('Danik')


q = input()
str = input()
anton = str.count('A')
if anton == len(str) - anton:
	print('Friendship')
elif anton > len(str) - anton:
	print('Anton')
else:
	print('Danik')


from collections import Counter
n = int(input())
c = Counter(input())
if c['A'] > c['D']:
	print('Anton')
elif c['D'] > c['A']:
	print('Danik')
else:
	print('Friendship')


_ = input()
string = input()
no_a = string.count('A')
no_d = string.count('D')
if no_a > no_d:
	print('Anton')
elif no_d > no_a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
t = input()
c = 0
d = 0
for i in t:
	if i == 'A':
		c += 1
	if i == 'D':
		d += 1
if c > d:
	print('Anton')
if c < d:
	print('Danik')
if c == d:
	print('Friendship')


a = int(input())
b = input()
at = 0
cb = 0
for i in b:
	if i == 'A':
		at += 1
	else:
		cb += 1
if at > cb:
	print('Anton')
elif at < cb:
	print('Danik')
else:
	print('Friendship')


input()
gameResults = input()
antonWins = sum((x == 'A' for x in gameResults))
if 2 * antonWins > len(gameResults):
	print('Anton')
elif antonWins * 2 == len(gameResults):
	print('Friendship')
else:
	print('Danik')


n = int(input(''))
s = str(input(''))
if len(s) == n:
	ant = s.count('A')
	dan = s.count('D')
	if ant > dan:
		print('Anton')
	elif dan > ant:
		print('Danik')
	else:
		print('Friendship')


n = input()
s = input()
nA = 0
for c in s:
	if c == 'A':
		nA += 1
nD = len(s) - nA
if nD > nA:
	print('Danik')
elif nA > nD:
	print('Anton')
else:
	print('Friendship')


n = int(input())
a = str(input())
a = list(a)[:n]

def get_win(a):
	count1 = a.count('A')
	count2 = len(a) - count1
	if count1 > count2:
		print('Anton')
	elif count1 < count2:
		print('Danik')
	else:
		print('Friendship')
get_win(a)


liczba = int(input())
litery = input()
licznikA = 0
licznikD = 0
for letter in litery:
	if letter == 'A':
		licznikA += 1
	if letter == 'D':
		licznikD += 1
if licznikA > licznikD:
	print('Anton')
if licznikA < licznikD:
	print('Danik')
if licznikA == licznikD:
	print('Friendship')


z = input()
a = input()
x = a.count('D')
y = int(z) - x
if x == y:
	print('Friendship')
elif x > y:
	print('Danik')
else:
	print('Anton')


n = int(input())
string = input()
(a, d) = (0, 0)
for num in range(len(string)):
	if string[num] == 'A':
		a += 1
	elif string[num] == 'D':
		d += 1
print('Anton') if a > d else print('Danik') if a < d else print('Friendship')


n = int(input())
s = list(input())
sum_a = 0
sum_d = 0
for i in s:
	if i == 'A':
		sum_a += 1
	if i == 'D':
		sum_d += 1
if sum_a > sum_d:
	print('Anton')
elif sum_d > sum_a:
	print('Danik')
else:
	print('Friendship')


a = int(input())
n = input()
(c1, c2) = (0, 0)
for i in n:
	if i == 'A':
		c1 += 1
	if i == 'D':
		c2 += 1
if c1 == c2:
	print('Friendship')
elif c1 < c2:
	print('Danik')
elif c1 > c2:
	print('Anton')


n = input()
lst = list(input().strip())
ca = 0
cd = 0
for i in range(0, len(lst)):
	if lst[i] == 'A':
		ca += 1
	else:
		cd += 1
if ca > cd:
	print('Anton')
elif ca < cd:
	print('Danik')
else:
	print('Friendship')


def main():
	n = int(input())
	win = input()
	a_count = 0
	d_count = 0
	for i in win:
		if i == 'A':
			a_count += 1
		else:
			d_count += 1
	if a_count > d_count:
		print('Anton')
	elif a_count < d_count:
		print('Danik')
	else:
		print('Friendship')
main()


from collections import defaultdict as dd
import sys
input = sys.stdin.readline
n = int(input())
s = input()
a = s.count('A')
d = s.count('D')
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = input()
ka = kd = 0
for i in a:
	if i == 'A':
		ka += 1
	else:
		kd += 1
if ka > kd:
	print('Anton')
elif kd > ka:
	print('Danik')
else:
	print('Friendship')


trash = input()
linee = input()
countA = linee.count('A')
countD = linee.count('D')
if countA > countD:
	print('Anton')
elif countA < countD:
	print('Danik')
else:
	print('Friendship')


input()
a = list(input())
d = b = 0
for i in range(len(a)):
	if a[i] == 'A':
		d += 1
	else:
		b += 1
if d > b:
	print('Anton')
elif b > d:
	print('Danik')
else:
	print('Friendship')


n = int(input().strip())
g = str(input().strip())
a = d = 0
for i in range(n):
	if g[i] == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


def game(s):
	a = 0
	d = 0
	for i in s:
		if i == 'A':
			a += 1
		else:
			d += 1
	if a > d:
		print('Anton')
	elif d > a:
		print('Danik')
	else:
		print('Friendship')
input()
game(input())


def main():
	from sys import stdout
	n = int(input())
	matchs = input()
	A = matchs.count('A')
	D = matchs.count('D')
	if A > D:
		res = 'Anton'
	elif A == D:
		res = 'Friendship'
	else:
		res = 'Danik'
	stdout.write(res)
main()


gamesPlayed = int(input())
gameResults = input()
antonWin = 0
danikWin = 0
for x in gameResults:
	if x == 'A':
		antonWin += 1
	elif x == 'D':
		danikWin += 1
if antonWin > danikWin:
	print('Anton')
elif danikWin > antonWin:
	print('Danik')
else:
	print('Friendship')


input()
x = input()
anton = x.count('A')
danik = x.count('D')
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


p = int(input()) - input().count('A') * 2
print([['Friendship', 'Danik'][p > 0], 'Anton'][p < 0])


o = input()
s = input()
z = 0
i = ()
for x in s:
	if x == 'D':
		z = z + 1
	elif x == 'A':
		z = z - 1
if z > 0:
	i = 'Danik'
elif z == 0:
	i = 'Friendship'
elif z < 0:
	i = 'Anton'
print(i)


b = int(input())
a = input()
an = 0
da = 0
for i in a:
	if i == 'A':
		an += 1
	else:
		da += 1
if an > da:
	print('Anton')
elif an < da:
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = str(input())
a1 = list(a)
if a1.count('A') > a1.count('D'):
	print('Anton')
elif a1.count('A') == a1.count('D'):
	print('Friendship')
else:
	print('Danik')


n = int(input(), base=10)
k = input()
k1 = k.count('A')
k2 = k.count('D')
if k1 > k2:
	print('Anton')
elif k2 > k1:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
(pa, pd) = (0, 0)
for x in s:
	if x == 'A':
		pa += 1
	elif x == 'D':
		pd += 1
if pa == pd:
	print('Friendship')
elif pa < pd:
	print('Danik')
else:
	print('Anton')


def anton_and_danik():
	games = int(input())
	result = input()
	anton = result.count('A')
	denik = games - anton
	if anton == denik:
		return 'Friendship'
	elif anton > denik:
		return 'Anton'
	else:
		return 'Danik'
print(anton_and_danik())


n = int(input())
a = input()
count1 = 0
count2 = 0
for i in range(len(a)):
	if a[i] == 'A':
		count1 = count1 + 1
	if a[i] == 'D':
		count2 = count2 + 1
if count1 > count2:
	print('Anton')
elif count2 > count1:
	print('Danik')
elif count1 == count2:
	print('Friendship')


d = int(input()) - input().count('A') * 2
print([['Friendship', 'Danik'][d > 0], 'Anton'][d < 0])


input()
s = input()
sd = s.count('D')
sa = len(s) - sd
if sd > sa:
	print('Danik')
elif sd < sa:
	print('Anton')
else:
	print('Friendship')


i = input
i()
p = i()
d = p.count('D')
a = p.count('A')
if a == d:
	print('Friendship')
elif a > d:
	print('Anton')
elif d > a:
	print('Danik')


x = int(input())
y = input()
c1 = y.count('A')
c2 = y.count('D')
if c1 == c2:
	print('Friendship')
elif c1 > c2:
	print('Anton')
else:
	print('Danik')


d = int(input()) / 2
r = input().count('A')
print('Anton' if r > d else 'Friendship' if r == d else 'Danik')


input()
inp = input().strip()
aCnt = bCnt = 0
for i in inp:
	if i == 'A':
		aCnt += 1
	else:
		bCnt += 1
if aCnt > bCnt:
	print('Anton')
elif aCnt < bCnt:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = str(input())
a = s.count('A')
b = len(s) - a
a = a - b
if a == 0:
	print('Friendship')
elif a > 0:
	print('Anton')
else:
	print('Danik')


import sys
input = sys.stdin.readline
n = int(input())
s = input().strip()
w = 0
for c in s:
	w += 1 if c == 'A' else -1
print('Friendship' if w == 0 else 'Anton' if w > 0 else 'Danik')


n = input()
n = int(n)
g = input()
g = list(g)
g.sort()
if n % 2 != 0:
	if g[n // 2] == 'A':
		print('Anton')
	else:
		print('Danik')
elif g[n // 2 - 1] != g[n // 2]:
	print('Friendship')
elif g[n // 2] == 'A':
	print('Anton')
else:
	print('Danik')


no_of_times = int(input())
first_input = str(input())
first_input_l = list(first_input)
anton = 0
danik = 0
x = 0
for n in range(no_of_times):
	if first_input_l[x] == 'A':
		anton = anton + 1
	else:
		danik = danik + 1
	x = x + 1
if anton > danik:
	print('Anton')
elif anton == danik:
	print('Friendship')
else:
	print('Danik')


number = int(input(''))
l = list(str(input('')))
d = 0
for item in l:
	if item == 'D':
		d = d + 1
if d > number / 2:
	print('Danik')
elif d == number / 2:
	print('Friendship')
else:
	print('Anton')


n = int(input())
li = input()
li = list(li)
t = 0
r = 0
i = 0
while i < n:
	if li[i] == 'A':
		t = t + 1
	else:
		r = r + 1
	i = i + 1
if t > r:
	print('Anton')
elif t < r:
	print('Danik')
else:
	print('Friendship')


N = int(input())
match = input()
play = []
for i in match:
	play.append(i)
a = play.count('A')
b = play.count('D')
if a > b:
	print('Anton')
elif a < b:
	print('Danik')
else:
	print('Friendship')


N = int(input())
S = input()
anton = S.count('A')
danik = S.count('D')
if anton == danik:
	print('Friendship')
else:
	print('Anton' if anton > danik else 'Danik')


n = int(input())
s = input()
a = []
d = []
for i in s:
	if i == 'A':
		a.append(i)
	else:
		d.append(i)
if len(a) > len(d):
	print('Anton')
if len(d) > len(a):
	print('Danik')
if len(a) == len(d):
	print('Friendship')


n = input()
s = input()
s = list(s)
a_count = 0
d_count = 0
for x in s:
	if x == 'A':
		a_count += 1
	else:
		d_count += 1
if a_count > d_count:
	print('Anton')
elif a_count < d_count:
	print('Danik')
else:
	print('Friendship')


games = int(input())
game_list = list(input())
if game_list.count('A') == game_list.count('D'):
	print('Friendship')
if game_list.count('A') > game_list.count('D'):
	print('Anton')
if game_list.count('A') < game_list.count('D'):
	print('Danik')


n = int(input())
s = input()
s.upper()
arr = list(s)
d = {}
for i in arr:
	keys = d.keys()
	if i in keys:
		d[i] += 1
	else:
		d[i] = 1
if 'A' not in d:
	d['A'] = 0
if 'D' not in d:
	d['D'] = 0
if d['A'] == d['D']:
	print('Friendship')
elif d['A'] > d['D']:
	print('Anton')
elif d['D'] > d['A']:
	print('Danik')


n = int(input())
word = list(input())

def Danik():
	return len(list((i for i in word if i == 'D')))

def Anton():
	return len(list((i for i in word if i == 'A')))

def isADF():
	if Danik() > Anton():
		return 'Danik'
	elif Anton() > Danik():
		return 'Anton'
	return 'Friendship'
print(isADF())


import re
y = input()
x = input()
a = len(re.findall('A', x))
d = len(re.findall('D', x))
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
q1 = input()
aa = ['A']
ad = ['D']
s = 0
s1 = 0
for i in q1:
	if i in aa:
		s += 1
	else:
		s1 += 1
if s > s1:
	print('Anton')
elif s1 > s:
	print('Danik')
else:
	print('Friendship')
	i


n = int(input())
st = input()
if len(st) > n:
	print('Error')
	exit()
a = 0
d = 0
for i in st:
	if i == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a == d:
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = input()
count1 = 0
count2 = 0
for item in s:
	if item == 'A':
		count1 += 1
	else:
		count2 += 1
if count1 == count2:
	print('Friendship')
elif count1 > count2:
	print('Anton')
else:
	print('Danik')


number_of_played_games = input()
who_won = input()
A = 0
D = 0
for i in range(int(number_of_played_games)):
	if who_won[i] == 'A':
		A += 1
	elif who_won[i] == 'D':
		D += 1
if A > D:
	print('Anton')
elif A < D:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
w1 = s.count('A')
w2 = s.count('D')
if w1 == w2:
	print('Friendship')
elif w1 > w2:
	print('Anton')
else:
	print('Danik')


n = int(input())
slowo = input()

def count_letters(c):
	return sum((c == s for s in slowo))
a = count_letters('A')
d = count_letters('D')
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


x = int(input())
s = input()
na = 0
nd = 0
for i in s:
	if i == 'A':
		na += 1
	elif i == 'D':
		nd += 1
if na > nd:
	print('Anton')
elif nd > na:
	print('Danik')
elif na == nd:
	print('Friendship')


n = int(input())
a = input()
i = 0
cnt1 = 0
cnt2 = 0
while i < n:
	if a[i] == 'A':
		cnt1 = cnt1 + 1
	if a[i] == 'D':
		cnt2 = cnt2 + 1
	i = i + 1
if cnt1 == cnt2:
	print('Friendship')
if cnt1 > cnt2:
	print('Anton')
if cnt2 > cnt1:
	print('Danik')


t = int(input())
h = input()
c = 0
c1 = 0
for i in h:
	if i == 'A':
		c += 1
	else:
		c1 += 1
if c > c1:
	print('Anton')
elif c1 > c:
	print('Danik')
else:
	print('Friendship')


input()
a = input()
c1 = 0
c2 = 0
for i in a:
	if i == 'D':
		c1 += 1
	else:
		c2 += 1
if c1 < c2:
	print('Anton')
elif c2 < c1:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
count_A = count_D = 0
for item in s:
	if item == 'A':
		count_A += 1
	elif item == 'D':
		count_D += 1
	else:
		count_D = count_A = 0
if count_A > count_D:
	print('Anton')
if count_A < count_D:
	print('Danik')
if count_A == count_D:
	print('Friendship')


input()
a_string = input()
if a_string.count('A') > a_string.count('D'):
	print('Anton')
elif a_string.count('A') < a_string.count('D'):
	print('Danik')
else:
	print('Friendship')


input()
x = input()
x = list(x)
d = x.count('D')
a = x.count('A')
if d > a:
	print('Danik')
elif d < a:
	print('Anton')
elif d == a:
	print('Friendship')


import re
s = input()
s = input()
a = [m.start() for m in re.finditer('A', s)]
b = [m.start() for m in re.finditer('D', s)]
if len(a) > len(b):
	print('Anton')
elif len(b) > len(a):
	print('Danik')
else:
	print('Friendship')


n = int(input())
e = 0
r = 0
for i in input():
	if i == 'A':
		e += 1
	elif i == 'D':
		r += 1
if e == r:
	print('Friendship')
elif e > r:
	print('Anton')
else:
	print('Danik')


a = int(input())
s = input()
s = [i for i in s]
b = s.count('A')
c = s.count('D')
if b > c:
	print('Anton')
elif b < c:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = str(input())
danik_won_times = s.count('D', 0, n)
if danik_won_times > n - danik_won_times:
	print('Danik')
elif danik_won_times < n - danik_won_times:
	print('Anton')
else:
	print('Friendship')


x = int(input())
winner = input().upper()
z = []
for i in range(x):
	z.append(winner[i])
for ind in z:
	A = z.count('A')
	D = z.count('D')
	if A > D:
		print('Anton')
		break
	elif A < D:
		print('Danik')
		break
	elif A == D:
		print('Friendship')
		break


a = int(input())
l = str(input().split())
if l.count('D') > l.count('A'):
	print('Danik')
elif l.count('A') > l.count('D'):
	print('Anton')
else:
	print('Friendship')


t = input()
a = input()
ca = 0
cd = 0
for i in a:
	if i == 'A':
		ca += 1
	else:
		cd += 1
if ca < cd:
	print('Danik')
elif cd < ca:
	print('Anton')
else:
	print('Friendship')


n1 = input()
n = int(n1)
arr1 = input()
arr = str(arr1)
count = 0
for i in arr:
	if i == 'A':
		count += 1
	else:
		count -= 1
if count == 0:
	print('Friendship')
elif count < 0:
	print('Danik')
else:
	print('Anton')


n = int(input())
S = input()
a = list(S)
A = a.count('A')
D = a.count('D')
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


n = int(input())
l = []
l = list(input())
s = l.count('A')
j = l.count('D')
if s > j:
	print('Anton')
if j > s:
	print('Danik')
if j == s:
	print('Friendship')


m = input()
n = input()
a = 0
d = 0
for i in range(len(n)):
	if n[i] == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a == d:
	print('Friendship')
else:
	print('Danik')


n = int(input())
r = n - input().count('A')
if n == 1 and r == 0:
	print('Anton')
	quit()
if r == n // 2:
	print('Friendship')
elif r < n // 2:
	print('Anton')
else:
	print('Danik')


num = int(input(' '))
result = input('')
if result.count('D') > result.count('A'):
	print('Danik')
elif result.count('D') < result.count('A'):
	print('Anton')
else:
	print('Friendship')


match = int(input())
str = input()
str1 = 'A'
a = []
b = []
for i in str:
	if i not in str1:
		a.append(i)
	else:
		b.append(i)
if len(a) == len(b):
	print('Friendship')
elif len(a) > len(b):
	print('Danik')
else:
	print('Anton')


n = int(input())
ent = input()
a = 0
d = 0
for e in ent:
	if e == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
elif d == a:
	print('Friendship')


import sys
n = int(sys.stdin.readline())
games = sys.stdin.readline()
games = games.rstrip()
total = len(games)
games = games.replace('A', '')
D = len(games)
winner = ''
if total - D > D:
	winner = 'Anton'
elif total - D < D:
	winner = 'Danik'
else:
	winner = 'Friendship'
print(winner)


i = input()
game_results = list(input())
Anton = 0
Danik = 0
for x in game_results:
	if x == 'A':
		Anton += 1
	elif x == 'D':
		Danik += 1
if Anton > Danik:
	print('Anton')
elif Danik > Anton:
	print('Danik')
else:
	print('Friendship')


c = int(input())
a = input()
c1 = 0
for k in range(len(a)):
	if a[k] == 'A':
		c1 += 1
if c1 > c - c1:
	print('Anton')
elif c1 < c - c1:
	print('Danik')
else:
	print('Friendship')


n = int(input())
w = input()
A = 0
D = 0
x = 0
while x < len(w):
	if w[x] == 'A':
		A = A + 1
	elif w[x] == 'D':
		D = D + 1
	x = x + 1
if A > D:
	print('Anton')
elif A < D:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
cntA = 0
for i in s:
	if i == 'A':
		cntA = cntA + 1
cntD = len(s) - cntA
if cntA > cntD:
	print('Anton')
elif cntA < cntD:
	print('Danik')
else:
	print('Friendship')


e = int(input())
a = str(input())
k = 0
for i in a:
	if i == 'D':
		k += 1
	else:
		k -= 1
if k > 0:
	print('Danik')
elif k == 0:
	print('Friendship')
else:
	print('Anton')


(a, c) = (int(input()) / 2, input().count('A'))
print('Anton' if c > a else 'Friendship' if a == c else 'Danik')


x = int(input())
y = input()
print(['ADnatnoink'[y.count('A') < y.count('D')::2], 'Friendship'][y.count('A') == y.count('D')])


input()
temp = input()
d = a = 0
for ch in temp:
	if ch == 'D':
		d += 1
	else:
		a += 1
if d > a:
	print('Danik')
elif a == d:
	print('Friendship')
else:
	print('Anton')


(a, l, s) = (0, input(), input())
for i in s:
	a = a + 1 if i == 'A' else a - 1
if a > 0:
	print('Anton')
elif a < 0:
	print('Danik')
else:
	print('Friendship')


import re

def hw(s):
	a = len(re.findall('A', s))
	d = len(s) - a
	return 'Friendship' if a == d else 'Anton' if a > d else 'Danik'
input()
print(hw(input()))


n = int(input())
t = str(input())
c = t.count('A')
d = t.count('D')
if c > d:
	print('Anton')
elif d > c:
	print('Danik')
else:
	print('Friendship')


n = int(input())
w = input().upper()
num_a = w.count('A')
num_d = w.count('D')
if n == num_a + num_d:
	if num_a > num_d:
		print('Anton')
	elif num_a == num_d:
		print('Friendship')
	else:
		print('Danik')


k = input()
s = list(input())
d = s.count('D')
a = s.count('A')
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
countAnton = 0
countDanik = 0
count = 0
det = True
while det:
	if s[count] == 'A':
		countAnton += 1
		if countAnton > n / 2:
			print('Anton')
			det = False
	elif s[count] == 'D':
		countDanik += 1
		if countDanik > n / 2:
			print('Danik')
			det = False
	if count == n - 1 and det:
		print('Friendship')
		det = False
	count += 1


num = int(input())
seq = input()
A = 0
D = 0
for c in seq:
	if c == 'A':
		A += 1
	else:
		D += 1
if A > D:
	print('Anton')
elif A < D:
	print('Danik')
else:
	print('Friendship')


input()
anton = 0
danik = 0
outcomes = input()
for out in outcomes:
	if out == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
arr = [x for x in list(input()) if x == 'A']
if len(arr) > n - len(arr):
	print('Anton')
elif len(arr) == n - len(arr):
	print('Friendship')
else:
	print('Danik')


a = int(input())
mas = input()
Mas1 = []
Mas1 += mas
countA = 0
countB = 0
for i in range(a):
	if Mas1[i] == 'A':
		countA += 1
	if Mas1[i] == 'D':
		countB += 1
if countA > countB:
	print('Anton')
if countA < countB:
	print('Danik')
if countA == countB:
	print('Friendship')


a = int(input())
count = input()
AC = 0
DC = 0
alist = list(count)
for i in range(0, a):
	if alist[i] == 'A':
		AC += 1
	elif alist[i] == 'D':
		DC += 1
if AC > DC:
	print('Anton')
elif AC < DC:
	print('Danik')
elif AC == DC:
	print('Friendship')


n = int(input())
seq = input()
count_A = seq.count('A')
if count_A < n / 2:
	print('Danik')
elif count_A > n / 2:
	print('Anton')
else:
	print('Friendship')


a = int(input())
b = input()
i = 0
A = 0
D = 0
while i <= a - 1:
	if b[i] == 'A':
		A += 1
		i += 1
	elif b[i] == 'D':
		D += 1
		i = i + 1
if A > D:
	print('Anton')
elif A < D:
	print('Danik')
else:
	print('Friendship')


import sys
N = int(sys.stdin.readline())
word = str(sys.stdin.readline().strip())
if word.count('A') > word.count('D'):
	print('Anton')
elif word.count('A') < word.count('D'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
x = str(input())
v = int(len(x))
b = 0
g = 0
if v != n:
	print('u must enter the right num')
else:
	for i in range(v):
		if x[i] == 'A':
			b += 1
		elif x[i] == 'D':
			g += 1
if b > g:
	print('Anton')
elif g > b:
	print('Danik')
else:
	print('Friendship')


w = input()
g = input()
c = 0
r = 0
for i in g:
	if str(i) == 'D':
		c += 1
	else:
		r += 1
if c > r:
	print('Danik')
elif c < r:
	print('Anton')
else:
	print('Friendship')


num = int(input())
string = input()
count = 0
for i in range(num):
	if string[i] == 'A':
		count += 1
if count > len(string) / 2:
	print('Anton')
elif count < len(string) / 2:
	print('Danik')
else:
	print('Friendship')


inp1 = list(map(int, input().rstrip().split()))
inp2 = input().upper()
c1 = inp2.count('A')
c2 = inp2.count('D')
if c1 > c2:
	print('Anton')
elif c1 < c2:
	print('Danik')
else:
	print('Friendship')


n = int(input())
string = input()
cnt = 0
if string == 'A':
	print('Anton')
elif string == 'D':
	print('Danik')
else:
	for item in string:
		if item == 'A':
			cnt += 1
	if n - cnt < n // 2:
		print('Anton')
	elif n - cnt > n // 2:
		print('Danik')
	else:
		print('Friendship')


n = input()
games = input()
balancer = 0
for i in games:
	if i == 'A':
		balancer += 1
	else:
		balancer -= 1
if balancer == 0:
	print('Friendship')
elif balancer > 0:
	print('Anton')
else:
	print('Danik')


num = int(input())
results = input()
Anton_counter = 0
Danik_counter = 0
for i in results:
	if i == 'A':
		Anton_counter += 1
	else:
		Danik_counter += 1
if Anton_counter > Danik_counter:
	print('Anton')
elif Danik_counter > Anton_counter:
	print('Danik')
else:
	print('Friendship')


n = int(input())
k = input()
b = k.count('A')
c = k.count('D')
if b > c:
	print('Anton')
elif c > b:
	print('Danik')
else:
	print('Friendship')


n = int(input())
wins = input()
anton = wins.count('A')
danik = wins.count('D')
if anton > danik:
	print('Anton')
if danik > anton:
	print('Danik')
if danik == anton:
	print('Friendship')


mas = []
i = int(input())
d = 0
a = 0
for x in input():
	mas.append(x)
for x in range(i):
	p = mas[x]
	if p == 'D':
		d += 1
	elif p == 'A':
		a += 1
if d > a:
	print('Danik')
elif a > d:
	print('Anton')
else:
	print('Friendship')


n = int(input())
countA = 0
countB = 0
score = input()
for i in score:
	if i == 'A':
		countA += 1
	else:
		countB += 1
if countA == countB:
	print('Friendship')
elif countA > countB:
	print('Anton')
else:
	print('Danik')


n = int(input())
s = input()
cnt1 = 0
cnt2 = 0
for x in s:
	if x == 'A':
		cnt1 += 1
	else:
		cnt2 += 1
if cnt1 > cnt2:
	print('Anton')
elif cnt1 < cnt2:
	print('Danik')
else:
	print('Friendship')


x = int(input())
y = input()
anton = 'A'
danik = 'D'
counter = 0
counter1 = 0
for i in y:
	if i == anton:
		counter = counter + 1
	elif i == danik:
		counter1 = counter1 + 1
if counter > counter1:
	print('Anton')
elif counter < counter1:
	print('Danik')
elif counter == counter1:
	print('Friendship')


next = int(input())
word = input()
(count_a, count_b) = (0, 0)
for item in word:
	if item == 'A':
		count_a += 1
	else:
		count_b += 1
if count_a > count_b:
	print('Anton')
elif count_a < count_b:
	print('Danik')
else:
	print('Friendship')


(len_s, string) = (int(input()), input())
if string.count('A') > string.count('D'):
	print('Anton')
elif string.count('A') < string.count('D'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
string = input()
line = [i for i in string]
Ds = line.count('D')
As = line.count('A')
r = As - Ds
if r > 0:
	print('Anton')
elif r < 0:
	print('Danik')
else:
	print('Friendship')


a = int(input())
b = list(input())
c = []
d = []
for i in range(a):
	if b[i] == 'A':
		c.append(b[i])
	else:
		d.append(b[i])
if len(c) > len(d):
	print('Anton')
elif len(d) > len(c):
	print('Danik')
else:
	print('Friendship')


n = int(input())
line = input()
ant_count = 0
for c in line:
	if c == 'A':
		ant_count += 1
if ant_count == n - ant_count:
	print('Friendship')
elif ant_count > n - ant_count:
	print('Anton')
else:
	print('Danik')


n = int(input())
g = input()
print('Anton') if g.count('A') > g.count('D') else print('Danik') if g.count('D') > g.count('A') else print('Friendship')


def whoWonMore(games):
	frequencyOfA = 0
	for winner in games:
		if winner == 'A':
			frequencyOfA = frequencyOfA + 1
		if frequencyOfA / len(games) > 0.5:
			return 'Anton'
	if frequencyOfA / len(games) == 0.5:
		return 'Friendship'
	return 'Danik'
lengthOfGame = int(input())
print(whoWonMore(input()))


n = int(input())
istr = input()
occ_count = istr.count('A')
if occ_count == float(n / 2):
	print('Friendship')
elif occ_count > float(n / 2):
	print('Anton')
else:
	print('Danik')


b = int(input())
a = input()
ant = 0
dak = 0
for i in range(len(a)):
	if a[i] == 'A':
		ant = ant + 1
	else:
		dak = dak + 1
if dak > ant:
	print('Danik')
elif dak == ant:
	print('Friendship')
else:
	print('Anton')


n = int(input())
letters = input()
An = 0
Da = 0
i = 0
while i < n:
	if letters[i] == 'A':
		An += 1
	elif letters[i] == 'D':
		Da += 1
	else:
		print('Wrong')
	i += 1
if An > Da:
	print('Anton')
elif An < Da:
	print('Danik')
else:
	print('Friendship')


l = int(input())
x = input()
x = list(x)
ac = 0
dc = 0
for i in x:
	if i == 'A':
		ac += 1
for i in x:
	if i == 'D':
		dc += 1
if ac > dc:
	print('Anton')
elif dc > ac:
	print('Danik')
else:
	print('Friendship')


a = int(input())
b = input()
c = b.upper()
count1 = 0
count2 = 0
for i in range(0, len(b)):
	if c[i] == 'A':
		count1 = count1 + 1
	else:
		count2 = count2 + 1
if count1 > count2:
	print('Anton')
elif count1 == count2:
	print('Friendship')
else:
	print('Danik')


a = int(input())
s = str(input())
ac = 0
bD = 0
for sl in range(a):
	if s[sl] == 'A':
		ac += 1
	else:
		bD += 1
if ac > bD:
	print('Anton')
elif ac < bD:
	print('Danik')
else:
	print('Friendship')


def symb_count(symb, s):
	counter = 0
	for i in s:
		if i == symb:
			counter += 1
	return counter
a = int(input())
s = input()
a_counter = symb_count('A', s)
d_counter = symb_count('D', s)
if a_counter == d_counter:
	print('Friendship')
elif a_counter > d_counter:
	print('Anton')
else:
	print('Danik')


i = int(input())
s = input().strip()
a = s.count('A')
b = s.count('D')
x = 'Anton' if a > b else 'Danik' if a < b else 'Friendship'
print(x)


games = input()
results = input()
a = 0
d = 0
for i in results:
	if i == 'A':
		a += 1
	elif i == 'D':
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
elif a == d:
	print('Friendship')


matches = input()
wins = input()
count = 0
for i in wins:
	if i == 'A':
		count += 1
	else:
		count += 0
wins = wins.replace('A', '')
if count > len(wins):
	print('Anton')
elif count < len(wins):
	print('Danik')
else:
	print('Friendship')


a = int(input())
s = str(input())
b = s.count('D')
if b == a - b:
	print('Friendship')
else:
	print(('Danik', 'Anton')[b < a - b])


n = input()
string = input()
if string.count('A') == string.count('D'):
	print('Friendship')
if string.count('A') > string.count('D'):
	print('Anton')
if string.count('A') < string.count('D'):
	print('Danik')


x = int(input())
s = input()
t = 0
for i in range(len(s)):
	if s[i] == 'A':
		t += 1
if 2 * t == x:
	print('Friendship')
elif 2 * t > x:
	print('Anton')
else:
	print('Danik')


n = int(input())
result = input()
anton_wins = result.count('A')
danik_wins = result.count('D')
if anton_wins > danik_wins:
	print('Anton')
elif anton_wins < danik_wins:
	print('Danik')
else:
	print('Friendship')


from fractions import Fraction
import sys
import bisect
import heapq
from math import *
from collections import Counter as counter
from itertools import combinations as comb
from itertools import permutations as permutate
from bisect import bisect_left as bl
from bisect import bisect_right as br
from bisect import bisect
mod = 1000000007

def inp():
	return sys.stdin.readline().strip()

def out(var):
	sys.stdout.write(str(var))

def lis():
	return list(map(int, inp().split()))

def stringlis():
	return list(map(str, inp().split()))

def sep():
	return map(int, inp().split())

def strsep():
	return map(str, inp().split())

def graph(vertex):
	return [[] for i in range(0, vertex + 1)]

def zerolist(n):
	return [0] * n

def nextline():
	out('\n')

def testcase(t):
	for p in range(t):
		solve()

def printlist(a):
	for p in range(0, len(a)):
		out(str(a[p]) + ' ')

def lcm(a, b):
	return a * b // gcd(a, b)

def power(a, b):
	ans = 1
	while b > 0:
		if b % 2 == 1:
			ans *= a
		a *= a
		b //= 2
	return ans
n = int(input())
s = inp()
a = list(s)
b = 0
c = 0
for i in range(n):
	if a[i] == 'A':
		b += 1
	else:
		c += 1
if b > c:
	print('Anton')
elif b < c:
	print('Danik')
else:
	print('Friendship')


num = input()
games = input()
(a, b) = [0, 0]
for each in games:
	if each == 'A':
		a = a + 1
	else:
		b = b + 1
if a > b:
	print('Anton')
elif a < b:
	print('Danik')
else:
	print('Friendship')


n = input()
s = input()
a = s.count('A')
b = s.count('D')
if a > b:
	print('Anton')
elif a < b:
	print('Danik')
elif a == b:
	print('Friendship')


input()
S = input()
D = S.count('D')
A = S.count('A')
if A == D:
	print('Friendship')
elif A < D:
	print('Danik')
else:
	print('Anton')


n = int(input(''))
outcomes = input('')
n_wins_anton = outcomes.count('A')
if n_wins_anton > n / 2:
	print('Anton')
elif n_wins_anton < n / 2:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
cA = 0
cD = 0
for e in s:
	if e == 'A':
		cA += 1
	if e == 'D':
		cD += 1
if cA > cD:
	print('Anton')
elif cA < cD:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
ka = s.count('A')
kd = s.count('D')
if ka > kd:
	print('Anton')
elif ka < kd:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
a = len(list(filter(lambda x: x == 'A', s)))
print('Anton' if a > len(s) - a else 'Danik' if a < len(s) - a else 'Friendship')


n = int(input())
t = input()
numA = t.count('A')
if numA > n / 2:
	print('Anton')
elif numA < n / 2:
	print('Danik')
else:
	print('Friendship')


num = int(input())
str = input()
count = 0
for i in range(0, num):
	ch = str[i:i + 1]
	if ch == 'A':
		count = count + 1
	else:
		count = count - 1
if count > 0:
	print('Anton')
elif count == 0:
	print('Friendship')
else:
	print('Danik')


fuck = input()
name = input()
a = 0
d = 0
for l in name:
	if l == 'D':
		d += 1
	else:
		a += 1
if a > d:
	print('Anton')
elif a == d:
	print('Friendship')
else:
	print('Danik')


import cmath
c = int(input())
b = input()
counta = 0
countd = 0
for i in range(len(b)):
	if b[i] == 'A':
		counta += 1
	elif b[i] == 'D':
		countd += 1
if counta > countd:
	print('Anton')
elif counta < countd:
	print('Danik')
else:
	print('Friendship')


def AandD(n, s):
	d = s.count('D')
	a = n - d
	if a == d:
		return 'Friendship'
	elif a > d:
		return 'Anton'
	return 'Danik'
n = int(input())
s = input()
print(AandD(n, s))


n = int(input())
q = sum([i == 'A' for i in input()])
if n - q > q:
	print('Danik')
elif n - q < q:
	print('Anton')
else:
	print('Friendship')


n = int(input())
a = input()
ac = a.count('A')
dc = n - ac
if ac > dc:
	print('Anton')
if ac < dc:
	print('Danik')
if ac == dc:
	print('Friendship')


input()
x = input()
t = 0
for i in x:
	if 'A' == i:
		t = t + 1
	else:
		t = t - 1
if t == 0:
	print('Friendship')
elif t > 0:
	print('Anton')
else:
	print('Danik')


n = int(input())
str1 = input()
cnta = str1.count('A')
cntd = len(str1) - cnta
if cnta > cntd:
	print('Anton')
elif cntd > cnta:
	print('Danik')
else:
	print('Friendship')


from collections import Counter

class friends:
	AD = ''

	def __init__(self, AD):
		self.AD = AD
		self.calc()

	def calc(self):
		l = Counter(self.AD)
		if l['A'] > l['D']:
			print('Anton')
		elif l['A'] < l['D']:
			print('Danik')
		else:
			print('Friendship')

def Main():
	n = input('')
	AD = input('')
	chess = friends(AD)
Main()


Games = input('')
Result = input('')
Anton = Result.count('A')
Danik = Result.count('D')
if Anton == Danik:
	print('Friendship')
elif Anton > Danik:
	print('Anton')
else:
	print('Danik')


n1 = int(input())
n = str(input())
(aaa, ddd) = (0, 0)
for i in range(len(n)):
	if n[i] == 'A':
		aaa += 1
	else:
		ddd += 1
if aaa > ddd:
	print('Anton')
elif aaa < ddd:
	print('Danik')
else:
	print('Friendship')


num = int(input())
str = input()
cnt = 0
for i in str:
	if i == 'A':
		cnt += 1
lose = num - cnt
if lose > cnt:
	print('Danik')
elif cnt > lose:
	print('Anton')
else:
	print('Friendship')


def winner(s):
	d = s.count('D')
	a = len(s) - d
	if a == d:
		print('Friendship')
	elif a > d:
		print('Anton')
	else:
		print('Danik')
n = input()
s = input()
winner(s)


def noofAnton(s):
	count = 0
	for i in s:
		if i == 'A':
			count += 1
	return count

def noofDanik(s):
	count = 0
	for i in s:
		if i == 'D':
			count += 1
	return count

def main():
	n = input()
	s = input()
	if noofAnton(s) > noofDanik(s):
		print('Anton')
	elif noofAnton(s) < noofDanik(s):
		print('Danik')
	else:
		print('Friendship')
main()


anton_wins = 0
danik_wins = 0
number_of_games_played = int(input())
games_string = input()
for e in games_string:
	if e == 'A':
		anton_wins += 1
	else:
		danik_wins += 1
if anton_wins > danik_wins:
	print('Anton')
elif anton_wins < danik_wins:
	print('Danik')
else:
	print('Friendship')


gamesNum = int(input())
gamesResult = input()
antonWins = 0
danikWins = 0
for i in gamesResult:
	if i == 'A':
		antonWins += 1
	else:
		danikWins += 1
if antonWins > danikWins:
	print('Anton')
elif danikWins > antonWins:
	print('Danik')
else:
	print('Friendship')


n = input()
data = input()
a = data.count('A')
d = data.count('D')
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
games = input()
count_a = 0
count_d = 0
for item in games:
	if item == 'A':
		count_a += 1
	else:
		count_d += 1
if count_a > count_d:
	print('Anton')
elif count_d > count_a:
	print('Danik')
else:
	print('Friendship')


num = input()
result = list(input())
anton = result.count('A')
danik = len(result) - anton
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


num = int(input())
s = input()
count_a = s.count('A')
diff = len(s) - count_a
if count_a > diff:
	print('Anton')
elif count_a < diff:
	print('Danik')
else:
	print('Friendship')


games = int(input())
won = input()
antonWins = 0
for i in won:
	if i == 'A':
		antonWins = antonWins + 1
if antonWins > games / 2:
	print('Anton')
elif antonWins == games / 2:
	print('Friendship')
else:
	print('Danik')


def solve(games):
	if games.count('D') > games.count('A'):
		return 'Danik'
	elif games.count('D') < games.count('A'):
		return 'Anton'
	return 'Friendship'
n = int(input())
games = list(input())
print(solve(games))


n = int(input())
L = list(input())
ant = 0
dan = 0
for i in L:
	if i == 'A':
		ant += 1
	elif i == 'D':
		dan += 1
if ant > dan:
	print('Anton')
elif dan > ant:
	print('Danik')
elif ant == dan:
	print('Friendship')


leng = int(input())
word = input()
i = 0
A = 0
D = 0
while i < leng:
	if word[i] == 'A':
		A += 1
	else:
		D += 1
	i += 1
if A > D:
	print('Anton')
elif A < D:
	print('Danik')
else:
	print('Friendship')


w = int(input())
p = input()
a = list(p)
t = 0
s = 0
for i in range(0, w):
	if a[i] == 'A':
		t = t + 1
	elif a[i] == 'D':
		s = s + 1
if t > s:
	print('Anton')
elif t < s:
	print('Danik')
else:
	print('Friendship')


input()
s = input()
upper = 0
for _ in s:
	if _ == 'A':
		upper += 1
if upper * 2 == s.__len__():
	print('Friendship')
elif upper > s.__len__() - upper:
	print('Anton')
else:
	print('Danik')


largo = input()
inp = input()
lista = []
for i in range(len(inp)):
	lista.append(inp[i])
contador_A = 0
contador_D = 0
for i in range(len(inp)):
	if lista[i] == 'A':
		contador_A += 1
	elif lista[i] == 'D':
		contador_D += 1
if contador_D > contador_A:
	print('Danik')
elif contador_D < contador_A:
	print('Anton')
elif contador_D == contador_A:
	print('Friendship')


number = int(input())
string = input()
total = sum((1 if i == 'A' else -1 for i in string))
if total > 0:
	print('Anton')
elif total < 0:
	print('Danik')
else:
	print('Friendship')


def whoWon(scores):
	Anton = sum([1 for i in scores if i == 'A'])
	Danik = sum([1 for i in scores if i == 'D'])
	if Anton > Danik:
		return 'Anton'
	if Danik > Anton:
		return 'Danik'
	return 'Friendship'
size = int(input())
print(whoWon(input()))


n = int(input())
game = str(input())
count_a = 0
count_d = 0
for i in range(n):
	if game[i] == 'A':
		count_a += 1
	else:
		count_d += 1
if count_a > count_d:
	print('Anton')
elif count_a < count_d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
ai = [char for char in input()]
c1 = 0
c2 = 0
for i in range(n):
	if ai[i] == 'A':
		c1 += 1
	if ai[i] == 'D':
		c2 += 1
if c1 > c2:
	print('Anton')
if c1 < c2:
	print('Danik')
if c1 == c2:
	print('Friendship')


n = int(input())
scores = input()
count_a = scores.count('A')
count_d = len(scores) - count_a
if count_a > count_d:
	print('Anton')
elif count_d > count_a:
	print('Danik')
else:
	print('Friendship')


a = int(input()) - input().count('A') * 2
print([['Friendship', 'Danik'][a > 0], 'Anton'][a < 0])


from collections import Counter
n = int(input())
scores = input()
cnt = Counter(scores)
if cnt['A'] > cnt['D']:
	print('Anton')
elif cnt['D'] > cnt['A']:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = list(str(input().split()))
counter1 = 0
counter2 = 0
for i in range(len(s)):
	if s[i] == 'A':
		counter1 = counter1 + 1
	elif s[i] == 'D':
		counter2 = counter2 + 1
if counter1 > counter2:
	print('Anton')
elif counter2 > counter1:
	print('Danik')
elif counter1 == counter2:
	print('Friendship')


from math import *
n = int(input())
s = str(input())
count_A = 0
count_B = 0
for i in range(n):
	if s[i] == 'A':
		count_A += 1
	else:
		count_B += 1
if count_A > count_B:
	print('Anton')
elif count_A < count_B:
	print('Danik')
elif count_A == count_B:
	print('Friendship')


def answer():
	n = input()
	s = list(input())
	count = 0
	for x in s:
		if x == 'A':
			count += 1
		else:
			count -= 1
	if count > 0:
		return 'Anton'
	elif count == 0:
		return 'Friendship'
	elif count < 0:
		return 'Danik'
print(answer())


def solve(a):
	if a.count('A') > a.count('D'):
		print('Anton')
	elif a.count('A') < a.count('D'):
		print('Danik')
	else:
		print('Friendship')
n = input()
a = input()
solve(a)


num = int(input())
score = str(input())
anton = 0
danik = 0
for i in range(0, num):
	if score[i:i + 1] == 'A':
		anton += 1
	elif score[i:i + 1] == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
c = []
d = []
for i in range(len(s)):
	if s[i] == 'A':
		c.append(s[i])
	else:
		d.append(s[i])
if len(c) == len(d):
	print('Friendship')
elif len(c) > len(d):
	print('Anton')
else:
	print('Danik')


n = int(input())
games = list(input())
Anton = 0
Danik = 0
for i in range(n):
	if games[i] == 'A':
		Anton += 1
	else:
		Danik += 1
if Anton > Danik:
	print('Anton')
elif Danik > Anton:
	print('Danik')
else:
	print('Friendship')


games_no = input()
string = input()
countA = string.count('A')
countD = string.count('D')
if countA > countD:
	print('Anton')
elif countA < countD:
	print('Danik')
else:
	print('Friendship')


num = int(input())
line = list(input())
a = 0
d = 0
for i in line:
	if i == 'D':
		d += 1
	else:
		a += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
x = str(input())
contA = x.count('A')
contB = x.count('D')
if contA > contB:
	print('Anton')
elif contA < contB:
	print('Danik')
else:
	print('Friendship')


n = int(input())
x = input()
an = 0
d = 0
for i in range(n):
	if x[i] == 'A':
		an += 1
	else:
		d += 1
if d > an:
	print('Danik')
elif an > d:
	print('Anton')
else:
	print('Friendship')


n = int(input())
l = list(input())
a = sum([l[i] == 'A' for i in range(len(l))] * 1)
b = sum([l[i] == 'D' for i in range(len(l))] * 1)
if a > b:
	print('Anton')
elif a == b:
	print('Friendship')
elif a < b:
	print('Danik')


input()
situ = input()
if situ.count('A') > situ.count('D'):
	print('Anton')
elif situ.count('A') < situ.count('D'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
k = input()
p = k.count
if p('A') > p('D'):
	print('Anton')
elif p('A') < p('D'):
	print('Danik')
else:
	print('Friendship')


_ = input()
winners = input()
danik = 0
anton = 0
for winner in winners:
	if winner == 'D':
		danik += 1
	else:
		anton += 1
if danik > anton:
	print('Danik')
elif danik == anton:
	print('Friendship')
else:
	print('Anton')


x = int(input())
y = input()
player1 = 0
player2 = 0
for i in range(x):
	if y[i] == 'A':
		player1 += 1
	elif y[i] == 'D':
		player2 += 1
if player1 > player2:
	print('Anton')
elif player2 > player1:
	print('Danik')
else:
	print('Friendship')


n = [int(i) for i in input().split()][0]
a = input()
ant = 0
dan = 0
for elem in a:
	if elem == 'A':
		ant += 1
	else:
		dan += 1
if ant > dan:
	print('Anton')
elif ant < dan:
	print('Danik')
else:
	print('Friendship')


n = int(input())
l = input()
A = 0
D = 0
result = ''.join(l)
for i in range(n):
	if result[i] == 'A':
		A += 1
	else:
		D += 1
if A > D:
	print('Anton')
elif A < D:
	print('Danik')
else:
	print('Friendship')


input()
value = sum([1 if c == 'D' else -1 for c in input()])
result = 'Danik' if value > 0 else 'Anton' if value < 0 else 'Friendship'
print(result)


s = input()
s1 = input()
counter = 0
for i in range(len(s1)):
	if s1[i] == 'A':
		counter += 1
if counter > int(s) / 2:
	print('Anton')
elif counter == int(s) / 2:
	print('Friendship')
else:
	print('Danik')


import math
import collections
import bisect
import heapq
import time
import random
import itertools
import sys
N = int(input())
S = input()
a = S.count('A')
d = S.count('D')
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


count = int(input())
win = input()
A = 0
D = 0
for i in win:
	if i == 'A':
		A += 1
	elif i == 'D':
		D += 1
if A > D:
	print('Anton')
elif A < D:
	print('Danik')
else:
	print('Friendship')


n = int(input())
Game = input()
A = Game.count('A')
B = Game.count('D')
if A > B:
	print('Anton')
elif B > A:
	print('Danik')
else:
	print('Friendship')


games = int(input())
result = input()
anton = 0
danik = 0
for each in range(0, games):
	if result[each] == 'A':
		anton += 1
	if result[each] == 'D':
		danik += 1
if anton < danik:
	print('Danik')
if anton > danik:
	print('Anton')
if anton == danik:
	print('Friendship')


def solve():
	nums = int(input())
	strings = [x for x in str(input())]
	a = 0
	d = 0
	for x in strings:
		if x == 'A':
			a += 1
		elif x == 'D':
			d += 1
	if a > d:
		print('Anton')
	elif a < d:
		print('Danik')
	else:
		print('Friendship')
solve()


l = int(input())
w = input()
n = l / 2
if w.count('A') > n:
	print('Anton')
if w.count('D') > n:
	print('Danik')
if w.count('A') == w.count('D'):
	print('Friendship')


import sys
LETTER_A = 'A'

def solve():
	_ = input()
	matches = list(sys.stdin.readline().rstrip())
	cnt_wins = [0] * 27
	for match in range(len(matches)):
		cnt_wins[ord(matches[match]) - ord(LETTER_A)] += 1
	if cnt_wins[ord('A') - ord(LETTER_A)] > cnt_wins[ord('D') - ord(LETTER_A)]:
		print('Anton')
	elif cnt_wins[ord('A') - ord(LETTER_A)] < cnt_wins[ord('D') - ord(LETTER_A)]:
		print('Danik')
	else:
		print('Friendship')
solve()


s = int(input())
g = input()
if len(g) == s:
	a = g.count('A')
	b = g.count('D')
	if a > b:
		print('Anton')
	elif a == b:
		print('Friendship')
	else:
		print('Danik')


num_games = input()
win_string = input()
anton_wins = 0
danik_wins = 0
for i in range(int(num_games)):
	if win_string[i] == 'A':
		anton_wins += 1
	else:
		danik_wins += 1
if anton_wins > danik_wins:
	print('Anton')
elif danik_wins > anton_wins:
	print('Danik')
else:
	print('Friendship')


lenght = int(input())
string = input()
count1 = string.count('A')
count2 = string.count('D')
if count1 == count2:
	print('Friendship')
elif count1 > count2:
	print('Anton')
else:
	print('Danik')


Anton = 0
Danik = 0
string = ''
n = int(input())
string = input()
i = int(len(string))
if n == i:
	while i >= 0:
		if string[:1] == 'A':
			Anton += 1
			string = string[1:]
		elif string[:1] == 'D':
			Danik += 1
			string = string[1:]
		i -= 1
if Anton > Danik:
	print('Anton')
elif Danik > Anton:
	print('Danik')
else:
	print('Friendship')


from collections import Counter, defaultdict

def solve():
	n = input()
	s = input().strip()
	freq = Counter(s)
	num_a_won = freq['A']
	num_d_won = freq['D']
	if num_a_won > num_d_won:
		print('Anton')
	elif num_a_won < num_d_won:
		print('Danik')
	else:
		print('Friendship')
solve()


n = int(input())
m = input()
c = 0
for i in m:
	if i == 'D':
		c = c + 1
if c == n - c:
	print('Friendship')
if c < n - c:
	print('Anton')
if c > n - c:
	print('Danik')


a = int(input())
txt = input()
d = 0
a = 0
for i in txt:
	if i == 'A':
		a += 1
	elif i == 'D':
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
elif d == a:
	print('Friendship')


def main():
	_ = input()
	games = input()
	a = games.count('A')
	d = games.count('D')
	if a > d:
		print('Anton')
	elif d > a:
		print('Danik')
	else:
		print('Friendship')
main()


n = int(input())
num_1 = 0
num_2 = 0
if 1 <= n <= 10 ** 5:
	slovo = input()
	slovo = slovo.lower()
	slovo = list(slovo)
	for bukva in slovo:
		if bukva == 'a':
			num_1 += 1
		if bukva == 'd':
			num_2 += 1
	if num_1 > num_2:
		print('Anton')
	elif num_1 < num_2:
		print('Danik')
	elif num_1 == num_2:
		print('Friendship')


n = int(input())
b = input()
freq = 0
dic = {}
for i in b:
	if i in dic:
		dic[i] += 1
	else:
		dic[i] = 1
Keymax = max(dic, key=dic.get)
if len(dic) >= 2 and dic['A'] == dic['D']:
	print('Friendship')
elif Keymax == 'A':
	print('Anton')
else:
	print('Danik')


n = int(input())
tmp = str(input())
a = 0
d = 0
for i in range(0, n):
	if tmp[i] == 'A':
		a = a + 1
	elif tmp[i] == 'D':
		d = d + 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
n_anton = s.count('A')
n_danik = n - n_anton
if n_anton > n_danik:
	print('Anton')
elif n_danik > n_anton:
	print('Danik')
else:
	print('Friendship')


n = input()
l = [ele for ele in input()]
if l.count('A') > l.count('D'):
	print('Anton')
elif l.count('D') > l.count('A'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
result = input()
an = result.count('A')
bor = result.count('D')
if an > bor:
	print('Anton')
elif bor > an:
	print('Danik')
else:
	print('Friendship')


n = int(input())
won = list(input())
A_won = len([1 for i in won if i == 'A'])
print('Anton' if A_won > n - A_won else 'Danik' if A_won < n - A_won else 'Friendship')


n = int(input())
s = input()
dSum = 0
aSum = 0
for i in s:
	if i == 'D':
		dSum += 1
	elif i == 'A':
		aSum += 1
if aSum > dSum:
	print('Anton')
elif aSum < dSum:
	print('Danik')
elif aSum == dSum:
	print('Friendship')


def compare_string(s, n):
	count1 = 0
	count2 = 0
	for i in range(0, n):
		if 'A' in s[i]:
			count1 += 1
		else:
			count2 += 1
	if count1 > count2:
		print('Anton')
	elif count1 < count2:
		print('Danik')
	else:
		print('Friendship')
n = int(input())
s = input()
compare_string(s, n)


n = int(input())
str = input()
c = 0
d = 0
for i in str:
	if i == 'D':
		c = c + 1
	elif i == 'A':
		d = d + 1
if c > d:
	print('Danik')
elif d > c:
	print('Anton')
else:
	print('Friendship')


num_games = int(input())
wins = input()
anton = 0
for i in wins:
	if i == 'A':
		anton += 1
danik = num_games - anton
if anton == danik:
	print('Friendship')
elif anton > danik:
	print('Anton')
else:
	print('Danik')


input()
s = input()
if s.count('D') > s.count('A'):
	print('Danik')
elif s.count('D') == s.count('A'):
	print('Friendship')
elif s.count('D') < s.count('A'):
	print('Anton')


totalGame = int(input())
totalwin = input()
a = 0
d = 0
for i in totalwin:
	if i == 'A':
		a += 1
	else:
		d += 1
if a == d:
	print('Friendship')
elif a > d:
	print('Anton')
else:
	print('Danik')


input()
s = input()
count = 0
for i in range(0, len(s)):
	if s[i] == 'A':
		count += 1
	elif s[i] == 'D':
		count -= 1
if count > 0:
	print('Anton')
elif count == 0:
	print('Friendship')
elif count < 0:
	print('Danik')


from functools import reduce
n = int(input())
s = input()
sum = reduce(lambda x, y: x + (y == 'A'), s, 0)
if n - sum < sum:
	print('Anton')
elif n - sum > sum:
	print('Danik')
else:
	print('Friendship')


import sys
import math
files = False
if files:
	sys.stdout = open('slalom.out', mode='w')
	sys.stdin = open('slalom.in')
a = str(input())
a = str(input())
if a.count('A') > a.count('D'):
	print('Anton')
elif a.count('A') < a.count('D'):
	print('Danik')
else:
	print('Friendship')
sys.stdout.close()


n = int(input())
y = input()
aw = 0
dw = 0
for i in range(n):
	if y[i] == 'A':
		aw += 1
	else:
		dw += 1
if aw > dw:
	print('Anton')
elif aw == dw:
	print('Friendship')
else:
	print('Danik')


a = int(input())
b = input()
contador = 0
contador2 = 0
for i in range(0, a):
	if b[i] == 'A':
		contador += 1
	elif b[i] == 'D':
		contador2 += 1
if contador > contador2:
	print('Anton')
elif contador2 > contador:
	print('Danik')
elif contador == contador2:
	print('Friendship')


a = int(input())
n = input()
dc = ac = 0
for i in n:
	if i == 'D':
		dc += 1
	else:
		ac += 1
if dc > ac:
	print('Danik')
elif ac > dc:
	print('Anton')
else:
	print('Friendship')


n = int(input())
s = input()
print('Friendship' if len(s.split('A')) == len(s.split('D')) else 'Anton' if len(s.split('A')) > (n / 2 if n % 2 == 0 else (n + 1) / 2) else 'Danik')


import sys

def main(Get_Input):
	Count_A = 0
	Count_D = 0
	for i in Get_Input:
		if 'A' in i:
			Count_A += 1
		else:
			Count_D += 1
	if Count_A > Count_D:
		p = 'Anton'
	elif Count_D > Count_A:
		p = 'Danik'
	else:
		p = 'Friendship'
	print(p)
Get_Input_Len = int(input())
Get_Input = input()
if Get_Input_Len == len(Get_Input):
	main(Get_Input)
else:
	pass


n = int(input())
w = str(input())
a = w.count('A')
d = w.count('D')
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
x = input()
a = 0
d = 0
for i in range(n):
	a = x.count('A')
	d = x.count('D')
if d > a:
	print('Danik')
elif a > d:
	print('Anton')
elif a == d:
	print('Friendship')


number_of_games = int(input())
games = input()
anton_wins = 0
daniks_wins = 0
for game_won in games:
	if game_won == 'A':
		anton_wins += 1
	else:
		daniks_wins += 1
if anton_wins > daniks_wins:
	print('Anton')
elif daniks_wins > anton_wins:
	print('Danik')
else:
	print('Friendship')


x = int(input())
a = list(input().split())
an = 0
da = 0
l = []
for i in range(x):
	l.append(a[0][i])
for j in range(x):
	if l[j] == 'A':
		an = an + 1
	else:
		da = da + 1
if an > da:
	print('Anton')
elif da > an:
	print('Danik')
else:
	print('Friendship')


n = int(input())
tiSo = input().strip()
d = 0
a = 0
for i in range(len(tiSo)):
	if tiSo[i] == 'D':
		d += 1
	else:
		a += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


q = int(input())
s = str(input())
a = 0
d = 0
for i in range(len(s)):
	if s[i] == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


g = int(input())
s = str(input())
v = [c for c in s]
a = 0
d = 0
for m in v:
	if m == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


input()
st = input()
countA_B = 0
for i in st:
	if i == 'A':
		countA_B += 1
	else:
		countA_B -= 1
if countA_B > 0:
	print('Anton')
elif countA_B == 0:
	print('Friendship')
else:
	print('Danik')


x = int(input())
s = input()
i = 0
counta = 0
countd = 0
while i < x:
	if s[i] == 'A':
		counta += 1
	else:
		countd += 1
	i += 1
if counta == countd:
	print('Friendship')
elif counta > countd:
	print('Anton')
else:
	print('Danik')


n = int(input())
l = list(input())
ca = l.count('A')
cd = l.count('D')
if ca > cd:
	print('Anton')
elif cd > ca:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
(uppers, lowers) = (0, 0)
for i in range(len(s)):
	if s[i] == 'A':
		uppers += 1
lowers = len(s) - uppers
if lowers < uppers:
	print('Anton')
elif lowers > uppers:
	print('Danik')
else:
	print('Friendship')


n = int(input())
game = input()
lisg = list(game)
a = 0
d = 0
for i in range(n):
	if lisg[i] == 'A':
		a = a + 1
	elif lisg[i] == 'D':
		d = d + 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
elif a == d:
	print('Friendship')


n = int(input())
a = input()
an = a.count('A')
da = len(a) - an
if an > da:
	print('Anton')
elif an < da:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
anton = 0
for char in s:
	if char == 'A':
		anton += 1
if anton > n / 2:
	print('Anton')
elif anton < n / 2:
	print('Danik')
else:
	print('Friendship')


input_list = []
num = 0
while True:
	if num == 2:
		break
	line = input()
	if not line.isdigit():
		input_list.append(line)
	num += 1
count = 0
for let in input_list[0]:
	if let == 'A':
		count += 1
if count > len(input_list[0]) - count:
	print('Anton')
elif count < len(input_list[0]) - count:
	print('Danik')
else:
	print('Friendship')


n = input()
word = input()
nA = 0
nD = 0
for i in word:
	if i == 'A':
		nA = nA + 1
	elif i == 'D':
		nD = nD + 1
if nA > nD:
	print('Anton')
elif nA < nD:
	print('Danik')
else:
	print('Friendship')


import sys
import math
from os import path
if path.exists('input.txt'):
	sys.stdin = open('input.txt', 'r')
	sys.stdout = open('output.txt', 'w')
n = int(input())
l = list(input())
if l.count('A') == l.count('D'):
	print('Friendship')
elif l.count('A') > l.count('D'):
	print('Anton')
else:
	print('Danik')


_ = int(input())
s = input()
D = A = 0
for c in s:
	if c == 'A':
		A += 1
	else:
		D += 1
if A > D:
	print('Anton')
elif A == D:
	print('Friendship')
else:
	print('Danik')


c1 = input()
c = input()
l = len(c)
c1 = 0
c2 = 0
for i in range(l):
	if c[i] == 'A':
		c1 += 1
	else:
		c2 += 1
if c1 > c2:
	print('Anton')
elif c1 < c2:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
s = list(s)
c = 0
k = 0
for i in range(0, len(s)):
	if s[i] == 'A':
		c = c + 1
	elif s[i] == 'D':
		k = k + 1
if c > k:
	print('Anton')
elif c == k:
	print('Friendship')
else:
	print('Danik')


n = int(input())
count = 0
count1 = 0
m = input()
for i in range(n):
	if m[i] == 'A':
		count += 1
	else:
		count1 += 1
if count > count1:
	print('Anton')
elif count < count1:
	print('Danik')
else:
	print('Friendship')


def playerWon(player):
	ac = 0
	dc = 0
	for i in player:
		if i == 'A':
			ac += 1
		if i == 'D':
			dc += 1
	if ac < dc:
		return 'Danik'
	if ac > dc:
		return 'Anton'
	return 'Friendship'
t = int(input())
n = input()
print(playerWon(n))


from collections import Counter
n = int(input())
s = list(input())
s1 = Counter(s)
a = s1['A']
d = s1['D']
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
elif a == d:
	print('Friendship')


n = int(input())
lista = str(input())
output = 0
if lista.count('A') > n / 2:
	output = 'Anton'
elif lista.count('A') == n / 2:
	output = 'Friendship'
else:
	output = 'Danik'
print(output)


n = int(input())
x = input()
i = 0
j = 0
k = 0
while i < n:
	if x[i] == 'A':
		j += 1
		i += 1
	else:
		k += 1
		i += 1
if j > k:
	print('Anton')
elif j == k:
	print('Friendship')
else:
	print('Danik')


x = int(input())
ant_and_dan = input()
ant_lyst = []
dan_lyst = []
for i in range(x):
	if ant_and_dan[i] == 'A':
		ant_lyst.append(i)
	else:
		dan_lyst.append(i)
if len(ant_lyst) > len(dan_lyst):
	print('Anton')
elif len(ant_lyst) == len(dan_lyst):
	print('Friendship')
else:
	print('Danik')


a = int(input())
b = input()
c = []
for i in b:
	c.append(i)
c1 = c
c = list(set(c))
c.sort()
if len(c) == 1 and c[0] == 'A':
	print('Anton')
elif len(c) == 1 and c[0] == 'D':
	print('Danik')
elif c1.count(c[0]) > c1.count(c[1]):
	print('Anton')
elif c1.count(c[1]) > c1.count(c[0]):
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = str(input())
countA = a.count('A')
countD = a.count('D')
print([['Friendship', 'Danik'][countA < countD], 'Anton'][countA > countD])


import collections
count = input()
resultsData = input()
results = collections.Counter(resultsData)
if results['A'] > results['D']:
	print('Anton')
elif results['A'] == results['D']:
	print('Friendship')
else:
	print('Danik')


games = int(input())
win = input()
anton = 0
danik = 0
for i in range(len(win)):
	if win[i] == 'A':
		anton += 1
	elif win[i] == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
elif anton == danik:
	print('Friendship')


j = int(input())
count = sum((i in 'A' for i in input()))
if j / 2 > count:
	print('Danik')
elif j / 2 < count:
	print('Anton')
else:
	print('Friendship')


n = int(input())
a = list(input())
A = a.count('A')
B = a.count('D')
if A == B:
	print('Friendship')
elif max(A, B) == A:
	print('Anton')
else:
	print('Danik')


n = int(input())
s = str(input().upper())
if 1 <= n <= 100000 and n == len(s) and s.isalpha():
	A = s.count('A')
	D = s.count('D')
	if A + D == n and A > D:
		print('Anton')
	elif A + D == n and A < D:
		print('Danik')
	elif A + D == n and A == D:
		print('Friendship')


import collections
test = input()
s = input()
count = collections.Counter(s)
if count['A'] > count['D']:
	print('Anton')
elif count['A'] == count['D']:
	print('Friendship')
else:
	print('Danik')


T = int(input())
inp = input()
A_count = inp.count('A')
D_count = inp.count('D')
if A_count == D_count:
	print('Friendship')
if A_count > D_count:
	print('Anton')
if D_count > A_count:
	print('Danik')


quantity = int(input())
wins = input()
Danik = 0
Anton = 0
for i in range(quantity):
	if wins[i] == 'D':
		Danik += 1
	else:
		Anton += 1
if Anton < Danik:
	print('Danik')
elif Anton > Danik:
	print('Anton')
else:
	print('Friendship')


c = int(input())
a = 0
d = 0
str = input()
a = str.count('A')
d = str.count('D')
if d > a:
	print('Danik')
elif a > d:
	print('Anton')
else:
	print('Friendship')


games = int(input())
win = input()
a = 0
for x in win:
	if x == 'A':
		a += 1
d = games - a
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


input()
x = input()
sum1 = 0
sum2 = 0
for c in x:
	if c == 'A':
		sum1 += 1
	elif c == 'D':
		sum2 += 1
if sum1 == sum2:
	print('Friendship')
elif sum1 > sum2:
	print('Anton')
else:
	print('Danik')


n = int(input())
s = input()
d_count = 0
a_count = 0
for i in range(len(s)):
	if s[i] == 'A':
		a_count = a_count + 1
	else:
		d_count = d_count + 1
if a_count > d_count:
	print('Anton')
elif a_count < d_count:
	print('Danik')
else:
	print('Friendship')


from sys import stdin, stdout
n = stdin.readline()
s = stdin.readline()
if s.count('A') > s.count('D'):
	stdout.write('Anton')
elif s.count('A') == s.count('D'):
	stdout.write('Friendship')
else:
	stdout.write('Danik')


n = int(input())
x = input()
z = []
for i in x:
	z.append(i)
A = z.count('A')
D = z.count('D')
if D > A:
	print('Danik')
elif D < A:
	print('Anton')
else:
	print('Friendship')


input()
a = input()
aa = a.count('A')
dd = a.count('D')
if aa > dd:
	print('Anton')
elif aa < dd:
	print('Danik')
else:
	print('Friendship')


import sys
from sys import stdin, stdout
import bisect
import math
import heapq

def modinv(n, p):
	return pow(n, p - 2, p)

def cin():
	return map(int, sin().split())

def ain():
	return list(map(int, sin().split()))

def sin():
	return input()

def inin():
	return int(input())
import math

def Divisors(n):
	l = []
	for i in range(1, int(math.sqrt(n) + 1)):
		if n % i == 0:
			if n // i == i:
				l.append(i)
			else:
				l.append(i)
				l.append(n // i)
	return l

def most_frequent(list):
	return max(set(list), key=list.count)

def GCD(x, y):
	while y:
		(x, y) = (y, x % y)
	return x

def count(s, c):
	res = 0
	for i in range(len(s)):
		if s[i] == c:
			res = res + 1
	return res

def main():
	n = inin()
	s = sin()
	temp = 'A'
	vict = count(s, temp)
	if n % 2 == 0:
		if vict > n / 2:
			print('Anton')
		elif vict < n / 2:
			print('Danik')
		else:
			print('Friendship')
	elif vict > (n - 1) / 2:
		print('Anton')
	else:
		print('Danik')
py2 = round(0.5)
if py2:
	from future_builtins import ascii, filter, hex, map, oct, zip
	range = xrange
import os, sys
from io import IOBase, BytesIO
BUFSIZE = 8192

class FastIO(BytesIO):
	newlines = 0

	def __init__(self, file):
		self._file = file
		self._fd = file.fileno()
		self.writable = 'x' in file.mode or 'w' in file.mode
		self.write = super(FastIO, self).write if self.writable else None

	def _fill(self):
		s = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
		self.seek((self.tell(), self.seek(0, 2), super(FastIO, self).write(s))[0])
		return s

	def read(self):
		while self._fill():
			pass
		return super(FastIO, self).read()

	def readline(self):
		while self.newlines == 0:
			s = self._fill()
			self.newlines = s.count(b'\n') + (not s)
		self.newlines -= 1
		return super(FastIO, self).readline()

	def flush(self):
		if self.writable:
			os.write(self._fd, self.getvalue())
			(self.truncate(0), self.seek(0))

class IOWrapper(IOBase):

	def __init__(self, file):
		self.buffer = FastIO(file)
		self.flush = self.buffer.flush
		self.writable = self.buffer.writable
		if py2:
			self.write = self.buffer.write
			self.read = self.buffer.read
			self.readline = self.buffer.readline
		else:
			self.write = lambda s: self.buffer.write(s.encode('ascii'))
			self.read = lambda : self.buffer.read().decode('ascii')
			self.readline = lambda : self.buffer.readline().decode('ascii')
(sys.stdin, sys.stdout) = (IOWrapper(sys.stdin), IOWrapper(sys.stdout))
input = lambda : sys.stdin.readline().rstrip('\r\n')
import sys

class ostream:

	def __lshift__(self, a):
		sys.stdout.write(str(a))
		return self
cout = ostream()
endl = '\n'

def readnumbers(zero=0):
	conv = ord if py2 else lambda x: x
	A = []
	numb = zero
	sign = 1
	i = 0
	s = sys.stdin.buffer.read()
	try:
		while True:
			if s[i] >= b'0'[0]:
				numb = 10 * numb + conv(s[i]) - 48
			elif s[i] == b'-'[0]:
				sign = -1
			elif s[i] != b'\r'[0]:
				A.append(sign * numb)
				numb = zero
				sign = 1
			i += 1
	except:
		pass
	if s and s[-1] >= b'0'[0]:
		A.append(sign * numb)
	return A
main()


jumlah_game = int(input())
stat_menang = input()
A = 0
D = 0
for i in stat_menang:
	if i == 'A':
		A += 1
	elif i == 'D':
		D += 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


x = int(input())
y = input()
anton = y.count('A')
danik = y.count('D')
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
elif anton == danik:
	print('Friendship')


nums = int(input())
string = input()
anton = 0
danik = 0
for i in range(0, nums):
	if string[i] == 'A':
		anton += 1
	elif string[i] == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


import math
import string
n = int(input())
a = str(input())
sum1 = 0
sum2 = 0
for i in range(len(a)):
	if a[i] == 'A':
		sum1 = sum1 + 1
	else:
		sum2 = sum2 + 1
if sum1 > sum2:
	print('Anton')
elif sum1 < sum2:
	print('Danik')
else:
	print('Friendship')


def main():
	input()
	inp = input()
	(L1, L2) = (''.join(inp.split('A')), ''.join(inp.split('D')))
	print('Anton' if len(L2) > len(L1) else 'Danik' if len(L2) != len(L1) else 'Friendship')
main()


n = int(input())
arr = input()
A = 0
D = 0
for x in arr:
	if x == 'A':
		A += 1
	elif x == 'D':
		D += 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


_1 = '236a'
_2 = '339a'
_3 = '266a'
_4 = '96a'
_5 = '236a'
_6 = '281a'
_7 = '546a'
_8 = '116a'
_9 = '977a'
_10 = '266b'
_11 = '110a'
_12 = '41a'
_13 = '734a'
k = int(input())
n = list(str(input()))
a = 0
d = 0
for i in n:
	if i == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
elif a == d:
	print('Friendship')


n = input()
games = list(input())
num_a = games.count('A')
num_d = games.count('D')
if num_a - num_d == 0:
	print('Friendship')
elif num_a - num_d > 0:
	print('Anton')
else:
	print('Danik')


import string

def main():
	n = int(input())
	games = input()
	print(solver(games))

def solver(games):
	antons = games.count('A')
	half = len(games) / 2
	if antons < half:
		return 'Danik'
	elif antons == half:
		return 'Friendship'
	else:
		return 'Anton'
main()


n = int(input())
vs = input()
vs1 = str(vs)
shd = 0
sha = 0
for i in range(n):
	if vs1[i] == 'A':
		sha = sha + 1
	else:
		shd = shd + 1
if sha == shd:
	print('Friendship')
elif sha > shd:
	print('Anton')
else:
	print('Danik')


input()
game = input()
a = game.count('A')
d = game.count('D')
if a == d:
	print('Friendship')
else:
	print('ADnatnoink'[a < d::2])


n = int(input())
s = input()
a_fre = s.count('A')
d_fre = s.count('D')
if a_fre > d_fre:
	print('Anton')
elif a_fre < d_fre:
	print('Danik')
elif a_fre == d_fre:
	print('Friendship')


m = input()
n = input()
A = 0
D = 0
for i in n:
	if i == 'A':
		A += 1
	else:
		D += 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


def program(n):
	if n.count('A') > n.count('D'):
		return 'Anton'
	elif n.count('A') < n.count('D'):
		return 'Danik'
	else:
		return 'Friendship'
a = int(input())
n = input()
print(program(n))


n = int(input())
string = input()
antcount = 0
dancount = 0
for i in string:
	if i == 'A':
		antcount += 1
	else:
		dancount += 1
if antcount == dancount:
	print('Friendship')
elif antcount > dancount:
	print('Anton')
else:
	print('Danik')


n = input()
s = input()
a = 0
for ch in s:
	if ch == 'A':
		a += 1
d = len(s) - a
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


def anton_and_danik():
	games = int(input())
	wins = input()
	anton_wins = sum((i == 'A' for i in wins))
	if anton_wins * 2 > len(wins):
		print('Anton')
	elif anton_wins * 2 == len(wins):
		print('Friendship')
	else:
		print('Danik')
	return
anton_and_danik()


count = int(input(''))
chess = str(input(''))
summ = 0
for i in range(count):
	if chess[i] == 'A':
		summ += 1
if summ > count / 2:
	print('Anton')
elif summ < count / 2:
	print('Danik')
else:
	print('Friendship')


_ = input()
st = input()
st = list(st)
a = 0
d = 0
for _ in st:
	if _ == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input().upper()
S = []
for x in s:
	S.append(x)
a = 0
d = 0
i = 0
while i < len(S):
	if S[i] == 'A':
		a += 1
		i += 1
	elif S[i] == 'D':
		d += 1
		i += 1
if a > d:
	print('Anton')
elif a == d:
	print('Friendship')
else:
	print('Danik')


def count_A(temp):
	counter = 0
	for t in temp:
		if t == 'A':
			counter += 1
	return counter
n = int(input())
s = input()
cA = count_A(s)
if cA > len(s) - cA:
	print('Anton')
elif cA < len(s) - cA:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
a = s.count('A')
k = s.count('D')
if a > k:
	print('Anton')
elif a < k:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
l = list(s)
x = l.count('A')
y = l.count('D')
if x == y:
	print('Friendship')
elif x > y:
	print('Anton')
elif x < y:
	print('Danik')


(e, d) = (0, 0)
f = int(input())
y = input()
s = list()
s.extend(y)
for i in range(len(s)):
	if s[i] == 'A':
		e = e + 1
	else:
		d = d + 1
if e > d:
	print('Anton')
elif d > e:
	print('Danik')
else:
	print('Friendship')


def main(got):
	if got.count('A') > got.count('D'):
		return 'Anton'
	elif got.count('A') < got.count('D'):
		return 'Danik'
	elif got.count('A') == got.count('D'):
		return 'Friendship'
col = input()
got = input()
print(main(got))


n_input = int(input())
string_input = input()
(count_A, count_D) = (0, 0)
for i in string_input:
	if i == 'A':
		count_A += 1
	else:
		count_D += 1
if count_A == count_D:
	print('Friendship')
elif count_A > count_D:
	print('Anton')
else:
	print('Danik')


num = int(input())
st = input()
a = 0
d = 0
for i in range(num):
	if st[i] == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


a = int(input())
b = list(map(str, input()))
if b.count('A') > b.count('D'):
	print('Anton')
elif b.count('A') < b.count('D'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
com = input()
Anton = 0
Danik = 0
for i in range(len(com)):
	if 'A' == com[i]:
		Anton += 1
	else:
		Danik += 1
if Anton > Danik:
	print('Anton')
elif Anton < Danik:
	print('Danik')
else:
	print('Friendship')


def game(s):
	l = []
	for i in range(0, len(s)):
		l.append(s[i])
	a = 0
	d = 0
	for i in range(0, len(s)):
		if l[i] == 'D':
			d += 1
		else:
			a += 1
	if a == d:
		print('Friendship')
	elif d > a:
		print('Danik')
	else:
		print('Anton')
n = int(input())
s = input()
game(s)


n = int(input())
s = input()
anton = []
danik = []
for i in s:
	if i == 'A':
		anton.append(i)
	else:
		danik.append(i)
if len(anton) > len(danik):
	print('Anton')
elif len(anton) < len(danik):
	print('Danik')
else:
	print('Friendship')


x = int(input())
y = input()
(i, m, n) = (0, 0, 0)
while i < x:
	if y[i] == 'D':
		n = n + 1
		i += 1
	else:
		m = m + 1
		i += 1
if m > n:
	print('Anton')
elif n > m:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input().lower()
a = []
b = []
for i in s:
	if i == 'a':
		a.append(i)
	else:
		b.append(i)
if len(a) > len(b):
	print('Anton')
elif len(b) > len(a):
	print('Danik')
else:
	print('Friendship')


size = int(input())
s = input()
s = list(s)
s.sort()
if size % 2 == 0:
	d = s[size // 2]
	a = s[size // 2 - 1]
	if d == 'D' and a == 'A':
		print('Friendship')
	elif a == 'D':
		print('Danik')
	else:
		print('Anton')
else:
	mid = (size - 1) // 2
	if s[mid] == 'A':
		print('Anton')
	else:
		print('Danik')


nh = int(input()) / 2
s = input()
a = s.count('A')
print('Anton' if a > nh else 'Danik' if a < nh else 'Friendship')


n = float(input())
g = input()
if g.count('A') > n / 2:
	print('Anton')
elif g.count('A') == n / 2:
	print('Friendship')
else:
	print('Danik')


def lmap(f, x):
	return list(map(f, x))

def read_ints():
	return lmap(int, input().strip().split())

def main():
	input()
	s = input()
	d = {'D': 0, 'A': 0}
	for x in s:
		d[x] += 1
	if d['D'] > d['A']:
		return 'Danik'
	elif d['D'] < d['A']:
		return 'Anton'
	else:
		return 'Friendship'
print(main())


a = int(input())
word = input()
co = 0
coo = 0
for x in word:
	if x == 'D':
		co += 1
	else:
		coo += 1
if co > coo:
	print('Danik')
elif coo > co:
	print('Anton')
else:
	print('Friendship')


n = int(input())
s = input().lower()
(a, d) = (0, 0)
for x in s:
	if x == 'a':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


game = int(input())
str1 = input()
Anton = []
Danik = []
for i in str1:
	if i == 'A':
		Anton.append(i)
	elif i == 'D':
		Danik.append(i)
	else:
		print('false ans')
if len(Anton) == len(Danik):
	print('Friendship')
elif len(Anton) > len(Danik):
	print('Anton')
else:
	print('Danik')


from collections import Counter
parties = int(input())
result = input()
result = list(result)
result = dict(Counter(result))
if len(result) == 2:
	if result['A'] > result['D']:
		print('Anton')
	elif result['A'] < result['D']:
		print('Danik')
	else:
		print('Friendship')
elif 'A' in result.keys():
	print('Anton')
else:
	print('Danik')


def word(s):
	c = 0
	for i in s:
		if i == 'A':
			c += 1
		else:
			c -= 1
	if c > 0:
		return 'Anton'
	elif c == 0:
		return 'Friendship'
	else:
		return 'Danik'
n = int(input())
s = input()[:n]
print(word(s))


n = int(input())
a = input()
cntd = cnta = int(0)
for i in a:
	if i == 'A':
		cnta += 1
	else:
		cntd += 1
if cnta > cntd:
	print('Anton')
elif cntd > cnta:
	print('Danik')
else:
	print('Friendship')


num = int(input())
word = str(input())
anton = 0
danik = 0
for i in word:
	if i == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


input()
mystring = input()
anotons = mystring.count('A')
Dim = mystring.count('D')
winnerDict = {True: 'Anton', False: 'Danik'}
print('Friendship' if anotons == Dim else winnerDict[anotons > Dim])


n = int(input())
s = input()
Acntr = 0
Dcntr = 0
length = len(s)
for i in range(length):
	if s[i] == 'A':
		Acntr = Acntr + 1
	else:
		Dcntr = Dcntr + 1
if Acntr > Dcntr:
	print('Anton')
elif Dcntr > Acntr:
	print('Danik')
else:
	print('Friendship')


import math, string, itertools, fractions, heapq, collections, re, array, bisect, sys, random, time, copy, functools
sys.setrecursionlimit(10 ** 7)
inf = 10 ** 20
eps = 1.0 / 10 ** 10
mod = 10 ** 9 + 7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]

def LI():
	return [int(x) for x in sys.stdin.readline().split()]

def LI_():
	return [int(x) - 1 for x in sys.stdin.readline().split()]

def LF():
	return [float(x) for x in sys.stdin.readline().split()]

def LS():
	return sys.stdin.readline().split()

def I():
	return int(sys.stdin.readline())

def F():
	return float(sys.stdin.readline())

def S():
	return input()

def pf(s):
	return print(s, flush=True)

def main():
	n = I()
	c = collections.Counter(S())
	if c['A'] > c['D']:
		return 'Anton'
	if c['A'] == c['D']:
		return 'Friendship'
	return 'Danik'
print(main())


def main():
	n = int(input().strip())
	game_result = input().strip()
	count_A = game_result.count('A')
	count_B = game_result.count('D')
	print('Friendship' if count_A == count_B else 'Anton' if count_A > count_B else 'Danik')
main()


num = input()
countA = 0
countD = 0
for i in input():
	if i == 'A':
		countA += 1
	else:
		countD += 1
if countA > countD:
	print('Anton')
elif countD > countA:
	print('Danik')
else:
	print('Friendship')


_ = input()
seq = input()
a = seq.count('A')
d = seq.count('D')
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
wins = input()
aw = wins.count('A')
dw = n - aw
if aw > dw:
	print('Anton')
elif aw < dw:
	print('Danik')
else:
	print('Friendship')


hoop = int(input())
joop = str(input())
if joop.count('D') > joop.count('A'):
	print('Danik')
elif joop.count('D') < joop.count('A'):
	print('Anton')
else:
	print('Friendship')


n = int(input())
k = input()
l = list(k)
anton = 0
danik = 0
for i in l:
	if i == 'A':
		anton += 1
	elif i == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
elif danik == anton:
	print('Friendship')


import sys
n = int(input())
order = input()
Anton = 0
Danik = 0
for i in order:
	if i == 'A':
		Anton += 1
	elif i == 'D':
		Danik += 1
	else:
		continue
if Anton > Danik:
	print('Anton')
elif Anton < Danik:
	print('Danik')
else:
	print('Friendship')


i = input
n = int(i())
a = i().count('A') * 2
print([['Friendship', 'Danik'][a < n], 'Anton'][a > n])


x = input()
y = input()
ac = 0
dc = 0
for i in y:
	if i == 'A':
		ac = ac + 1
	else:
		dc = dc + 1
if ac > dc:
	print('Anton')
elif ac < dc:
	print('Danik')
else:
	print('Friendship')


def main():
	n = input()
	games = input()
	countA = 0
	countD = 0
	for i in games:
		if i == 'A':
			countA += 1
		else:
			countD += 1
	if countA > countD:
		print('Anton')
	elif countA < countD:
		print('Danik')
	else:
		print('Friendship')
main()


def split(word):
	return [char for char in word]
n = int(input())
string_result = str(input())
results = split(string_result)
anton_times = 0
danik_times = 0
for result in results:
	if result.upper() == 'A':
		anton_times += 1
	else:
		danik_times += 1
if anton_times > danik_times:
	print('Anton')
elif danik_times > anton_times:
	print('Danik')
else:
	print('Friendship')


n = int(input())
c = input()
ca = 0
cd = 0
for j in c:
	if j == 'A':
		ca += 1
	else:
		cd += 1
if ca > cd:
	print('Anton')
elif cd > ca:
	print('Danik')
else:
	print('Friendship')


games = int(input())
winners = input()
Anton = len([i for i in winners if i == 'A'])
Danik = len([i for i in winners if i == 'D'])
if Anton > Danik:
	print('Anton')
elif Anton < Danik:
	print('Danik')
else:
	print('Friendship')


nm = int(input())
num = input()
a = [0, 0]
for i in num:
	if i == 'A':
		a[0] = a[0] + 1
	else:
		a[1] += 1
if a[0] > a[1]:
	print('Anton')
elif a[0] < a[1]:
	print('Danik')
else:
	print('Friendship')


inp = int(input().strip())
in_arr = input().strip()
A = in_arr.count('A')
D = in_arr.count('D')
if A == D:
	print('Friendship')
if A > D:
	print('Anton')
if D > A:
	print('Danik')


n = int(input())
ch = input()
s1 = 0
s2 = 0
for x in ch:
	if x == 'A':
		s1 += 1
	else:
		s2 += 1
if s1 > s2:
	print('Anton')
elif s1 < s2:
	print('Danik')
else:
	print('Friendship')


x = int(input())
y = input()
ant = y.count('A')
dan = y.count('D')
if ant > dan:
	print('Anton')
elif ant < dan:
	print('Danik')
elif ant == dan:
	print('Friendship')


n = input()
g = input()
l = list(g)
count = 0
count1 = 0
for i in l:
	if i == 'A':
		count += 1
	elif i == 'D':
		count1 += 1
if count > count1:
	print('Anton')
elif count == count1:
	print('Friendship')
else:
	print('Danik')


N = int(input())
l = input()
res = 0
for char in l:
	if char == 'A':
		res += 1
	else:
		res += -1
if res == 0:
	print('Friendship')
elif res > 0:
	print('Anton')
else:
	print('Danik')


chess_games = int(input())
winner = input()
if winner.count('A') > winner.count('D'):
	print('Anton')
elif winner.count('D') > winner.count('A'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
lt = list(input())
num = 0
for i in lt:
	if i == 'A':
		num += 1
	else:
		num -= 1
if num == 0:
	print('Friendship')
elif num > 0:
	print('Anton')
else:
	print('Danik')


n = int(input())
s = input()
cnt1 = s.count('A')
cnt2 = s.count('D')
if cnt1 > cnt2:
	print('Anton')
elif cnt1 < cnt2:
	print('Danik')
else:
	print('Friendship')


a = int(input())
b = input()
cnt1 = 0
cnt2 = 0
for i in range(len(b)):
	if b[i] == 'A':
		cnt1 = cnt1 + 1
	elif b[i] == 'D':
		cnt2 = cnt2 + 1
if cnt1 > cnt2:
	print('Anton')
elif cnt2 > cnt1:
	print('Danik')
elif cnt1 == cnt2:
	print('Friendship')


k = input()
n1 = list(input())
a = 0
d = 0
for i in range(len(n1)):
	if n1[i] == 'A':
		a = a + 1
	else:
		d = d + 1
if a > d:
	print('Anton')
if a < d:
	print('Danik')
if a == d:
	print('Friendship')


n = int(input())
l = input()
j = l.count('A')
k = l.count('D')
if j > k:
	print('Anton')
elif k > j:
	print('Danik')
elif k == j:
	print('Friendship')


n = int(input())
s = input()
aCont = 0
dCont = 0
for i in s:
	if i == 'A':
		aCont += 1
	if i == 'D':
		dCont += 1
if aCont > dCont:
	print('Anton')
elif dCont > aCont:
	print('Danik')
else:
	print('Friendship')


games = int(input())
A = D = 0
for name in input():
	if name == 'A':
		A += 1
	elif name == 'D':
		D += 1
if A == D:
	print('Friendship')
elif A > D:
	print('Anton')
elif A < D:
	print('Danik')


a = int(input())
b = input().upper()
c = list(b)
r = len(c)
if r == a:
	t = b.count('A')
	k = b.count('D')
	if t > k:
		print('Anton')
	elif t == k:
		print('Friendship')
	else:
		print('Danik')


n = input()
n = int(n)
st = input()
count = 0
for i in st:
	if i == 'A':
		count += 1
if count > n / 2:
	print('Anton')
elif count < n / 2:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
temp = s.count('A')
temp1 = s.count('D')
if temp == temp1:
	print('Friendship')
elif temp > temp1:
	print('Anton')
else:
	print('Danik')


a = int(input())
b = input()
(m, k) = (0, 0)
for i in b:
	if i == 'A':
		m += 1
	else:
		k += 1
if m > k:
	print('Anton')
elif m < k:
	print('Danik')
else:
	print('Friendship')


u = int(input())
s = input()
ant = 0
dan = 0
for i in range(u):
	if s[i] == 'A':
		ant += 1
	else:
		dan += 1
if ant > dan:
	print('Anton')
elif ant < dan:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
(c, c1) = (0, 0)
for i in range(len(s)):
	if s[i] == 'A':
		c += 1
	else:
		c1 += 1
if c > c1:
	print('Anton')
elif c1 > c:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
nA = s.count('A')
nD = n - nA
if nA > nD:
	print('Anton')
elif nA < nD:
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = input()
c = 0
for i in a:
	if i == 'A':
		c += 1
if c > n // 2:
	print('Anton')
elif c == n // 2 and n % 2 == 0:
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = input()
A_count = s.count('A')
D_count = n - A_count
if A_count > D_count:
	print('Anton')
elif A_count < D_count:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
cnts = 0
cnta = 0
for i in s:
	if i == 'D':
		cnts += 1
	else:
		cnta += 1
if cnts > cnta:
	print('Danik')
elif cnts < cnta:
	print('Anton')
else:
	print('Friendship')


n = int(input())
s = input()
p = [x for x in s]
if p.count('A') > p.count('D'):
	print('Anton')
elif p.count('A') < p.count('D'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
string = input()
count = 0
for el in string:
	if el == 'A':
		count += 1
if count > n - count:
	print('Anton')
elif count < n - count:
	print('Danik')
else:
	print('Friendship')


num = input()
main = str(input())
count = [main.count('D'), main.count('A')]
if count[0] > count[1]:
	print('Danik')
elif count[0] < count[1]:
	print('Anton')
else:
	print('Friendship')


from collections import defaultdict
n = int(input())
c = defaultdict(lambda : 0)
for item in input():
	c[item] += 1
if c['A'] > c['D']:
	print('Anton')
elif c['A'] == c['D']:
	print('Friendship')
else:
	print('Danik')


import sys
n = int(sys.stdin.readline().rstrip())
s = sys.stdin.readline().rstrip()
a = s.count('A')
d = s.count('D')
if a == d:
	print('Friendship')
elif a > d:
	print('Anton')
else:
	print('Danik')


n = input()
results = input()
Dan = 0
Ant = 0
for i in results:
	if i == 'A':
		Ant += 1
	else:
		Dan += 1
if Ant > Dan:
	print('Anton')
elif Dan > Ant:
	print('Danik')
else:
	print('Friendship')


x = int(input())
y = input()
ant = 0
dan = 0
for i in range(x):
	if y[i] == 'A':
		ant = ant + 1
	if y[i] == 'D':
		dan = dan + 1
if ant > dan:
	print('Anton')
elif dan > ant:
	print('Danik')
else:
	print('Friendship')


n = int(input())
a_d = list(input())
a = [c for c in a_d if c == 'A']
d = [c for c in a_d if c == 'D']
if len(a) > len(d):
	print('Anton')
elif len(a) < len(d):
	print('Danik')
else:
	print('Friendship')


def solve(games):
	A_count = games.count('A')
	D_count = len(games) - A_count
	if A_count > D_count:
		return 'Anton'
	elif A_count < D_count:
		return 'Danik'
	else:
		return 'Friendship'
l = input()
print(solve(input()))

def test():
	assert solve('ADAAAA') == 'Anton'
	assert solve('DDDAADA') == 'Danik'
	assert solve('DADADA') == 'Friendship'


num = int(input())
string = input()
A = string.count('A')
D = string.count('D')
if A > D:
	print('Anton')
if A < D:
	print('Danik')
if A == D:
	print('Friendship')


from collections import Counter
_ = input()
score = Counter(input())
if score['A'] > score['D']:
	print('Anton')
elif score['D'] > score['A']:
	print('Danik')
else:
	print('Friendship')


import re
num = input()
del num
games = input()
anton = len(re.findall('A', games))
danik = len(re.findall('D', games))
if anton > danik:
	print('Anton')
elif anton == danik:
	print('Friendship')
else:
	print('Danik')


x = int(input())
s = input()
k = 0
kk = 0
kkk = 0
for i in range(len(s)):
	if s[i] == 'D':
		k += 1
	elif s[i] == 'A':
		kk += 1
	else:
		kkk += 1
if k > kk:
	print('Danik')
elif kk > k:
	print('Anton')
else:
	print('Friendship')


n = int(input())
y = []
g = []
x = input()
z = len(x)
for i in range(n):
	if x[i] == 'a' or x[i] == 'A':
		y.append(x[i])
	elif x[i] == 'd' or x[i] == 'D':
		g.append(x[i])
if len(y) > len(g):
	print('Anton')
elif len(y) < len(g):
	print('Danik')
elif len(y) == len(g):
	print('Friendship')


n = int(input())
s = str(input())
Anton_points = 0
Danik_points = 0
for letter in s:
	if letter == 'A':
		Anton_points += 1
	elif letter == 'D':
		Danik_points += 1
if Anton_points > Danik_points:
	print('Anton')
elif Danik_points > Anton_points:
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = input()
A = 0
D = 0
for i in range(len(a)):
	if a[i] == 'A' or a[i] == 'a':
		A += 1
	else:
		D += 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


import sys
a = int(input())
b = input()
n = 0
d = 0
for i in range(0, a):
	if b[i] == 'A':
		n = n + 1
	if b[i] == 'D':
		d = d + 1
if n > d:
	print('Anton')
if n < d:
	print('Danik')
if n == d:
	print('Friendship')


n = int(input())
s = input()
a = s.count('A')
m = n / 2
if a > m:
	print('Anton')
elif a < m:
	print('Danik')
else:
	print('Friendship')


number_of_games = int(input())
results = input()
latters = list()
numbers_of_Anton_win = 0
numbers_of_Danik_win = 0
if len(results) == number_of_games:
	for latter in results:
		latters.append(latter)
for result in latters:
	if result == 'A':
		numbers_of_Anton_win = numbers_of_Anton_win + 1
	elif result == 'D':
		numbers_of_Danik_win = numbers_of_Danik_win + 1
if numbers_of_Anton_win > numbers_of_Danik_win:
	print('Anton')
elif numbers_of_Danik_win > numbers_of_Anton_win:
	print('Danik')
else:
	print('Friendship')


import sys
import math
import os
import itertools
import string
import heapq
import _collections
from collections import Counter
from collections import defaultdict
from functools import lru_cache
import bisect
import re
import queue
from decimal import *

class Scanner:

	@staticmethod
	def int():
		return int(sys.stdin.readline().rstrip())

	@staticmethod
	def string():
		return sys.stdin.readline().rstrip()

	@staticmethod
	def map_int():
		return [int(x) for x in Scanner.string().split()]

	@staticmethod
	def string_list(n):
		return [input() for i in range(n)]

	@staticmethod
	def int_list_list(n):
		return [Scanner.map_int() for i in range(n)]

	@staticmethod
	def int_cols_list(n):
		return [int(input()) for i in range(n)]

class Math:

	@staticmethod
	def gcd(a, b):
		if b == 0:
			return a
		return Math.gcd(b, a % b)

	@staticmethod
	def lcm(a, b):
		return a * b // Math.gcd(a, b)

	@staticmethod
	def divisor(n):
		res = []
		i = 1
		for i in range(1, int(n ** 0.5) + 1):
			if n % i == 0:
				res.append(i)
				if i != n // i:
					res.append(n // i)
		return res

	@staticmethod
	def round_up(a, b):
		return -(-a // b)

	@staticmethod
	def is_prime(n):
		if n < 2:
			return False
		if n == 2:
			return True
		if n % 2 == 0:
			return False
		d = int(n ** 0.5) + 1
		for i in range(3, d + 1, 2):
			if n % i == 0:
				return False
		return True

class PriorityQueue:

	def __init__(self, l=[]):
		self.q = l
		heapq.heapify(self.q)
		return

	def push(self, n):
		heapq.heappush(self.q, n)
		return

	def pop(self):
		return heapq.heappop(self.q)
MOD = int(1000000000.0) + 7
INF = int(1000000000000000.0)

def main():
	_ = Scanner.int()
	S = Scanner.string()
	a = S.count('A')
	d = S.count('D')
	if a == d:
		print('Friendship')
	elif a > d:
		print('Anton')
	else:
		print('Danik')
main()


n = int(input())
st = input()
cnt = st.count('A')
if cnt == n - cnt:
	print('Friendship')
elif cnt > n - cnt:
	print('Anton')
else:
	print('Danik')


n = input()
word = input()
an = 0
da = 0
for ch in word:
	if ch == 'A':
		an += 1
	else:
		da += 1
if an > da:
	print('Anton')
elif da > an:
	print('Danik')
else:
	print('Friendship')


n = int(input())
parts = list(input())
parts = sorted(parts)
anton = len(list(filter(lambda x: x == 'A', parts)))
danik = len(list(filter(lambda x: x == 'D', parts)))
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
else:
	print('Friendship')


import math
n = int(input())
m = input().count('A')
if abs(n - m < m):
	print('Anton')
elif abs(n - m > m):
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input().replace('A', '')
if len(s) > n - len(s):
	print('Danik')
elif len(s) == n - len(s):
	print('Friendship')
else:
	print('Anton')


import math
n = int(input())
s = input()
a = s.count('A')
d = s.count('D')
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


def main():
	games = int(input())
	winners = input()
	if 1 <= games <= 100000:
		Anton = 0
		Danik = 0
		for i in range(len(winners)):
			if winners[i] == 'A':
				Anton += 1
			if winners[i] == 'D':
				Danik += 1
		if Anton > Danik:
			print('Anton')
		if Anton < Danik:
			print('Danik')
		if Anton == Danik:
			print('Friendship')
main()


broj = input()
string = input()
if list(string).count('A') > list(string).count('D'):
	print('Anton')
elif list(string).count('A') < list(string).count('D'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
string = input()
(a, d) = (0, 0)
for x in string:
	if x == 'A':
		a += 1
	elif x == 'D':
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = input()
print('DAanntiokn'[a.count('A') > a.count('D')::2] if a.count('A') != a.count('D') else 'Friendship')


n = int(input())
l = input()
antonCount = l.count('A')
danikCount = l.count('D')
if antonCount > danikCount:
	print('Anton')
elif antonCount < danikCount:
	print('Danik')
else:
	print('Friendship')


t = int(input())
x = input()
y = 0
z = 0
for i in range(0, len(x)):
	if x[i] == 'A':
		y += 1
	elif x[i] == 'D':
		z += 1
if y > z:
	print('Anton')
elif z > y:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
s1 = 0
s2 = 0
for i in range(len(s)):
	if s[i] == 'A':
		s1 += 1
	else:
		s2 += 1
if s1 > s2:
	print('Anton')
elif s1 < s2:
	print('Danik')
else:
	print('Friendship')


from collections import Counter
N = int(input())
results = input()
r = [i for i in results]
c = Counter(r)
if c['A'] < c['D']:
	print('Danik')
if c['A'] > c['D']:
	print('Anton')
if c['A'] == c['D']:
	print('Friendship')


n = int(input())
b = input()
x = {'A': 0, 'D': 0}
for i in range(n):
	x[b[i]] = x[b[i]] + 1
if x['A'] > x['D']:
	print('Anton')
if x['A'] < x['D']:
	print('Danik')
if x['A'] == x['D']:
	print('Friendship')


input()
string = input()
antonWins = string.count('A')
danikWins = string.count('D')
if antonWins > danikWins:
	print('Anton')
elif danikWins > antonWins:
	print('Danik')
else:
	print('Friendship')


n = int(input())
S = input()
CA = 0
CD = 0
for i in S:
	if i == 'A':
		CA += 1
	else:
		CD += 1
if CA > CD:
	print('Anton')
elif CA == CD:
	print('Friendship')
else:
	print('Danik')


games_played = int(input())
scores = input()
Anton_points = 0
Derik_points = 0
for i in range(games_played):
	if scores[i] == 'A':
		Anton_points += 1
	else:
		Derik_points += 1
if Anton_points > Derik_points:
	print('Anton')
elif Derik_points > Anton_points:
	print('Danik')
else:
	print('Friendship')


k = int(input())
w = input()
a = 0
d = 0
for i in range(0, k):
	if w[i] == 'A':
		a = a + 1
	else:
		d = d + 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


def get_winner():
	anton = 0
	danik = 0
	mid = n // 2
	for c in s:
		if c == 'A':
			anton += 1
			if anton > mid:
				return 'Anton'
		else:
			danik += 1
			if danik > mid:
				return 'Danik'
	else:
		return 'Friendship'
n = int(input())
s = input()
print(get_winner())


D = int(input()) / 2
R = input().count('A')
print('Anton' if R > D else 'Friendship' if R == D else 'Danik')


import sys
n = int(input())
s = sys.stdin.readline()
a = 0
b = 0
for i in range(n):
	if s[i] == 'A':
		a += 1
	else:
		b += 1
if a > b:
	print('Anton')
elif a < b:
	print('Danik')
elif a == b:
	print('Friendship')


g = int(input())
x = input()
(a, b) = (0, 0)
for item in x:
	if item == 'A':
		a += 1
	else:
		b += 1
if a == b:
	print('Friendship')
elif a > b:
	print('Anton')
else:
	print('Danik')


gametime = input()
checklist = list(input())
Anton = 0
Danik = 0
for check in checklist:
	if check == 'A':
		Anton += 1
	elif check == 'D':
		Danik += 1
if Anton > Danik:
	print('Anton')
elif Anton < Danik:
	print('Danik')
else:
	print('Friendship')


r = input()
i = input()
a = 0
d = 0
k = 0
while k < len(i):
	if i[k] == 'A':
		a += 1
	elif i[k] == 'D':
		d += 1
	k += 1
if a > d:
	print('Anton')
elif a == d:
	print('Friendship')
else:
	print('Danik')


import pickle
i = input
n = i()
l = list(i())
s = 1
if l.count('A') > l.count('D'):
	s = 0
elif l.count('A') == l.count('D'):
	s = 2
print(['Anton', 'Danik', 'Friendship'][s])


n = int(input())
s = list(input())
w = s.count('A') - s.count('D')
print(['Anton', ['Danik', 'Friendship'][w == 0]][w <= 0])


repetition = int(input())
games = input()
outcomes = []
Anton_Wins = 0
Danik_Wins = 0
for name in games:
	outcomes.append(name)
for outcome in range(repetition):
	if outcomes[outcome] == 'A':
		Anton_Wins += 1
	elif outcomes[outcome] == 'D':
		Danik_Wins += 1
if Anton_Wins > Danik_Wins:
	print('Anton')
elif Anton_Wins < Danik_Wins:
	print('Danik')
else:
	print('Friendship')


n = int(input())
score = input()
a = 0
d = 0
score = list(score)
for i in score:
	if i == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
l = []
l = list(s)
la = l.count('A')
ld = l.count('D')
if la > ld:
	print('Anton')
elif la < ld:
	print('Danik')
else:
	print('Friendship')


f = lambda x: x / abs(x) if x else 0
input()
a = input()
b = a.count('A') - a.count('D')
print(['Friendship', 'Anton', 'Danik'][int(f(b))])


num = int(input())
stuff = input()
winlist = list(stuff)
a = 0
d = 0
for i in range(num):
	if winlist[i] == 'A':
		a = a + 1
	else:
		d = d + 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


a = int(input())
s = input()
i = 0
Anton = 0
Danik = 0
while i < a:
	if s[i] == 'A':
		Anton += 1
	if s[i] == 'D':
		Danik += 1
	i += 1
if Anton < Danik:
	print('Danik')
if Danik < Anton:
	print('Anton')
if Anton == Danik:
	print('Friendship')


s = int(input())
k = str(input())
(m, n) = (0, 0)
for i in k:
	if i == 'A':
		m = m + 1
	if i == 'D':
		n = n + 1
if m == n:
	print('Friendship')
elif m > n:
	print('Anton')
else:
	print('Danik')


a = int(input())
b = input()
m = 0
l = 0
f = 0
while m < a:
	if b[m] == 'A':
		l = l + 1
	if b[m] == 'D':
		f = f + 1
	m = m + 1
if l > f:
	print('Anton')
if f > l:
	print('Danik')
if l == f:
	print('Friendship')


n = int(input())
string = input()
cnt_a = 0
for c in string:
	if c == 'A':
		cnt_a += 1
if cnt_a == len(string) / 2:
	print('Friendship')
elif cnt_a > len(string) / 2:
	print('Anton')
else:
	print('Danik')


input()
a = input()
an = a.count('A')
bn = a.count('D')
if an > bn:
	print('Anton')
elif bn > an:
	print('Danik')
else:
	print('Friendship')


int(input())
games = input()
anton = games.count('A')
danik = games.count('D')
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


x = int(input())
r = input()
t = 0
c = 0
for i in r:
	if i == 'D':
		c = c + 1
	elif i == 'A':
		t = t + 1
if t > c:
	print('Anton')
elif t == c:
	print('Friendship')
else:
	print('Danik')


n = int(input())
a = str(input())
cA = 0
cD = 0
for characters in a:
	if characters == 'A':
		cA += 1
	else:
		cD += 1
if cA > cD:
	print('Anton')
if cA < cD:
	print('Danik')
if cA == cD:
	print('Friendship')


n = int(input())
s = input()
a = sum((True for i in s if i == 'A'))
if n - a == a:
	print('Friendship')
elif n - a > a:
	print('Danik')
else:
	print('Anton')


n = int(input())
string = input()
(c1, c2) = (0, 0)
for i in range(len(string)):
	if string[i] == 'A':
		c1 += 1
	else:
		c2 += 1
if c1 > c2:
	print('Anton')
elif c2 > c1:
	print('Danik')
else:
	print('Friendship')


totalGames = int(input())
gameResults = input().lower()
anton = 0
danik = 0
for result in gameResults:
	if result == 'a':
		anton += 1
	elif result == 'd':
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
elif anton == danik:
	print('Friendship')


n = 0
while n < 1 or n > 100000:
	n = int(input())
string = input()
string = string.upper()
anton = string.count('A')
danik = string.count('D')
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


t = int(input())
s = input()
cA = int()
cD = int()
for i in s:
	if i == 'A':
		cA += 1
	elif i == 'D':
		cD += 1
if cA > cD:
	print('Anton')
elif cA < cD:
	print('Danik')
else:
	print('Friendship')


n = int(input())
lis = list(input())
d = 0
a = 0
for i in range(n):
	if str(lis[i]) == 'A':
		a += 1
	elif str(lis[i]) == 'D':
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
elif d == a:
	print('Friendship')


def whoWins(n, s):
	Acount = 0
	Dcount = 0
	for i in range(0, n):
		if s[i] == 'A':
			Acount += 1
		elif s[i] == 'D':
			Dcount += 1
	if Acount > Dcount:
		return 'Anton'
	elif Acount < Dcount:
		return 'Danik'
	elif Acount == Dcount:
		return 'Friendship'
n = int(input())
s = input()
print(whoWins(n, s))


n = int(input())
a = list(input())
x = 0
y = 0
for i in a:
	if i == 'A':
		x = x + 1
	else:
		y = y + 1
if x > y:
	print('Anton')
if x == y:
	print('Friendship')
if x < y:
	print('Danik')


a = int(input())
b = input()
c = []
count = 0
for i in range(a):
	if b[i] == 'A':
		count += 1
if count > a / 2:
	print('Anton')
elif count < a / 2:
	print('Danik')
else:
	print('Friendship')


input()
chess = input()
A = len([i for i in chess if i == 'A'])
D = len([i for i in chess if i == 'D'])
if A != D:
	if A > D:
		print('Anton')
	else:
		print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
t = s.count('A')
l = s.count('D')
if t == l:
	print('Friendship')
if t > l:
	print('Anton')
if t < l:
	print('Danik')


a = int(input())
t = list(input())
counterA = 0
counterD = 0
for i in t:
	if i == 'A':
		counterA += 1
	if i == 'D':
		counterD += 1
if counterA > counterD:
	print('Anton')
if counterD > counterA:
	print('Danik')
if counterD == counterA:
	print('Friendship')


n = int(input())
s = input()
la = []
ld = []
for i in range(n):
	if s[i] == 'A':
		la.append(s[i])
	else:
		ld.append(s[i])
if len(la) > len(ld):
	print('Anton')
elif len(ld) > len(la):
	print('Danik')
else:
	print('Friendship')


def ans(n, s):
	for i in range(n):
		if s.count('A') > s.count('D'):
			return 'Anton'
		elif s.count('A') < s.count('D'):
			return 'Danik'
		else:
			return 'Friendship'
n = int(input())
a = input()
s = list(a)
print(ans(n, s))


x = int(input())
name = input()
(a, b) = (0, 0)
for s in name:
	if s == 'A':
		a += 1
	else:
		b += 1
if a > b:
	print('Anton')
elif a == b:
	print('Friendship')
else:
	print('Danik')


i = 1
turn = input()
str = input()
myList = list(str)
if myList.count('A') > myList.count('D'):
	print('Anton')
elif myList.count('A') < myList.count('D'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
if n >= 1 and n <= 1000000:
	s = input()
	if len(s) == n:
		x = s.count('A')
		y = s.count('D')
		if x > y:
			print('Anton')
		elif x < y:
			print('Danik')
		else:
			print('Friendship')


numgames = int(input())
winner = input()
A = 0
D = 0
for i in range(numgames):
	if winner[i] == 'A':
		A += 1
	if winner[i] == 'D':
		D += 1
if A > D:
	print('Anton')
if D > A:
	print('Danik')
if A == D:
	print('Friendship')


contents = []
while True:
	try:
		line = input()
	except EOFError:
		break
	contents.append(line)
a = 0
d = 0
n = int(contents[0])
line = contents[1]
for char in line:
	if char == 'A':
		a = a + 1
	if char == 'D':
		d = d + 1
print('Anton' if a > d else 'Danik' if a < d else 'Friendship')


input()
s = input()
score = s.count('A') - s.count('D')
print(['Friendship', 'Anton', 'Danik'][score // max(abs(score), 1)])


import sys

def solve():
	n = int(input())
	stri = input()
	num_A = stri.count('A')
	num_D = stri.count('D')
	if num_D > num_A:
		return 'Danik'
	elif num_A > num_D:
		return 'Anton'
	else:
		return 'Friendship'
ans = solve()
print(ans)


n = int(input())
s = input()
countA = 0
countD = 0
for i in range(len(s)):
	if s[i] == 'A':
		countA += 1
	else:
		countD += 1
		continue
if countA > countD:
	print('Anton')
elif countA == countD:
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = input()
num1 = num2 = 0
for i in range(n):
	if s[i] == 'A':
		num1 += 1
	elif s[i] == 'D':
		num2 += 1
if num1 > num2:
	print('Anton')
elif num1 < num2:
	print('Danik')
else:
	print('Friendship')


K = int(input())
ch = input()
d = dict()
d['A'] = 0
d['D'] = 0
for i in ch:
	d[i] = d[i] + 1
if d['D'] > d['A']:
	print('Danik')
elif d['D'] < d['A']:
	print('Anton')
else:
	print('Friendship')


n = int(input())
k = list(input())
d = k.count('D')
a = n - d
if d > a:
	print('Danik')
elif d < a:
	print('Anton')
else:
	print('Friendship')


n = int(input())
line = input().rstrip()
print(['Anton', 'Danik', 'Friendship'][0 if line.count('A') > line.count('D') else 1 if line.count('D') > line.count('A') else 2])


numberOfGames = int(input())
results = input()
antonWins = results.count('A')
danikWins = results.count('D')
if antonWins > danikWins:
	print('Anton')
elif danikWins > antonWins:
	print('Danik')
else:
	print('Friendship')


N = int(input(''))
Cad = input('')
Cont = 0
for K in Cad:
	if K == 'A':
		Cont = Cont + 1
if Cont > N - Cont:
	print('Anton')
elif Cont == N - Cont:
	print('Friendship')
else:
	print('Danik')


n_g = int(input())
win_list = input()
a_win = 0
d_win = 0
for winner in win_list:
	if winner == 'A':
		a_win += 1
	elif winner == 'D':
		d_win += 1
if a_win > d_win:
	print('Anton')
elif d_win > a_win:
	print('Danik')
else:
	print('Friendship')


num = input()
wons = input()
d = wons.count('D')
a = wons.count('A')
if a == d:
	print('Friendship')
elif a > d:
	print('Anton')
elif d > a:
	print('Danik')


a = int(input())
b = list(map(str, input()))
c = 0
d = 0
for i in range(len(b)):
	if b[i] == 'A':
		c += 1
	if b[i] == 'D':
		d += 1
if c > d:
	print('Anton')
elif c < d:
	print('Danik')
else:
	print('Friendship')


games_played = int(input())
winners = list(input())
anton = winners.count('A')
danik = winners.count('D')
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
else:
	print('Friendship')


def wins(x):
	A = D = 0
	juego = input()
	for i in range(x):
		if juego[i] == 'A':
			A += 1
		else:
			D += 1
	if A > D:
		print('Anton')
	elif D > A:
		print('Danik')
	else:
		print('Friendship')
x = int(input())
wins(x)


def main():
	try:
		while True:
			n = int(input())
			s = input()
			if s.count('A') << 1 > n:
				print('Anton')
			elif s.count('D') << 1 > n:
				print('Danik')
			else:
				print('Friendship')
	except EOFError:
		pass
main()


N = int(input())
L = input()
x = 0
y = 0
for a in L:
	if a == 'A':
		x += 1
	else:
		y += 1
if x > y:
	print('Anton')
elif x < y:
	print('Danik')
else:
	print('Friendship')


p = int(input())
n = input()
t = 0
b = 0
for i in range(len(n)):
	if n[i] == 'A':
		t += 1
	else:
		b += 1
if t > b:
	print('Anton')
elif t < b:
	print('Danik')
else:
	print('Friendship')


w = ['Anton', 'Danik', 'Friendship']
i = int(input())
a = input()
if a.count('A') > int(i) / 2:
	print(w[0])
elif a.count('A') == int(i) / 2:
	print(w[2])
else:
	print(w[1])


n = int(input())
s = str(input())
number = s.count('A') - s.count('D')
if number > 0:
	print('Anton')
elif number < 0:
	print('Danik')
else:
	print('Friendship')


n = int(input())
data = input()
a_count = 0
d_count = 0
for i in data:
	if i == 'A':
		a_count += 1
	elif i == 'D':
		d_count += 1
if a_count > d_count:
	print('Anton')
elif d_count > a_count:
	print('Danik')
elif a_count == d_count:
	print('Friendship')


n = int(input())
x = input()
count = 0
for i in x:
	if i == 'A':
		count = count + 1
z = count
y = len(x) - z
if z > y:
	print('Anton')
elif z == y:
	print('Friendship')
else:
	print('Danik')


def solve(*, _input: str) -> str:
	a_count = _input.count('A')
	d_count = len(_input) - a_count
	if a_count > d_count:
		return 'Anton'
	elif d_count > a_count:
		return 'Danik'
	else:
		return 'Friendship'
number_of_games = int(input())
winners_string = input()
solution = solve(_input=winners_string)
print(solution)


n = int(input())
A_wins = input().count('A')
D_wins = n - A_wins
if A_wins == D_wins:
	print('Friendship')
elif A_wins > D_wins:
	print('Anton')
else:
	print('Danik')


n = int(input())
s = input()
D = sum(map(lambda x: x == 'D', s))
A = sum(map(lambda x: x == 'A', s))
if D > A:
	print('Danik')
elif D < A:
	print('Anton')
else:
	print('Friendship')


def main():
	anton = 0
	danik = 0
	n = input()
	s = input()
	for i in s:
		if i == 'A':
			anton += 1
		elif i == 'D':
			danik += 1
	if anton > danik:
		print('Anton')
	elif danik > anton:
		print('Danik')
	else:
		print('Friendship')
main()


input()
matches = [m for m in input()]
if matches.count('A') > matches.count('D'):
	print('Anton')
elif matches.count('D') > matches.count('A'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
x = input().count('A') * 2
print([['Friendship', 'Danik'][x < n], 'Anton'][x > n])


input()
wins = [i for i in input()]
if wins.count('D') > wins.count('A'):
	print('Danik')
elif wins.count('D') < wins.count('A'):
	print('Anton')
else:
	print('Friendship')


numberGames = int(input())
Winner = input()
WinA = 0
for i in range(0, numberGames):
	if Winner[i] == 'A':
		WinA += 1
if WinA > numberGames / 2:
	print('Anton')
elif WinA == numberGames / 2:
	print('Friendship')
else:
	print('Danik')


input()
s = list(map(input().count, ('A', 'D')))
print('Anton' if s[0] > s[1] else 'Danik' if s[1] > s[0] else 'Friendship')


n = int(input())
history = input()
D = 0
A = 0
for char in history:
	if char == 'A':
		A += 1
	elif char == 'D':
		D += 1
if A > D:
	print('Anton')
elif A < D:
	print('Danik')
else:
	print('Friendship')


(games, scores) = (int(input()), input())
anton_score = sum((char == 'A' for char in scores))
if anton_score > games - anton_score:
	print('Anton')
elif anton_score < games - anton_score:
	print('Danik')
else:
	print('Friendship')


n = int(input())
str1 = input()
Anton = str1.count('A')
Dainik = str1.count('D')
if Anton > Dainik:
	print('Anton')
if Anton < Dainik:
	print('Danik')
if Anton == Dainik:
	print('Friendship')


t = int(input())
s = str(input())
if s.count('A') > s.count('D'):
	print('Anton')
elif s.count('A') < s.count('D'):
	print('Danik')
elif s.count('A') == s.count('D'):
	print('Friendship')


games = int(input())
who_won = input()
anton = 0
danik = 0
for s in who_won:
	if s == 'A':
		anton += 1
	if s == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
else:
	print('Friendship')


n = int(input())
txt = input()
A = 0
D = 0
i = 0
while i < n:
	if txt[i] == 'A':
		A += 1
	elif txt[i] == 'D':
		D += 1
	i += 1
if A > D:
	print('Anton')
elif A < D:
	print('Danik')
else:
	print('Friendship')


n = int(input())
anton = len([1 for x in input() if x == 'A'])
print('Anton') if anton > n - anton else print('Danik') if anton < n - anton else print('Friendship')


a = int(input())
b = input()
b = list(b)
ca = 0
cd = 0
for i in range(len(b)):
	if b[i] == 'A':
		ca += 1
	else:
		cd += 1
if ca > cd:
	print('Anton')
elif ca < cd:
	print('Danik')
else:
	print('Friendship')


(juegos, iniciales) = (input(), input())
danik = iniciales.count('D')
anton = iniciales.count('A')
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


import sys
from collections import Counter

def main():
	sys.stdin.readline()
	outcomes = sys.stdin.readline()
	outcomes = list(outcomes)
	results = Counter(outcomes)
	if results['A'] > results['D']:
		print('Anton')
	if results['A'] < results['D']:
		print('Danik')
	if results['A'] == results['D']:
		print('Friendship')
main()


n = int(input())
s = str(input())
A_win = 0
D_win = 0
for a in s:
	if a == 'D':
		D_win = D_win + 1
	else:
		A_win = A_win + 1
if A_win > D_win:
	print('Anton')
elif D_win > A_win:
	print('Danik')
else:
	print('Friendship')


k = int(input())
ig = list(input())
A = 0
D = 0
for i in range(k):
	if ig[i] == 'A':
		A += 1
	if ig[i] == 'D':
		D += 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


n = int(input())
l = list(map(str, input()))
ac = 0
dc = 0
for i in l:
	if i == 'A':
		ac += 1
	else:
		dc += 1
if ac > dc:
	print('Anton')
elif ac == dc:
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = input()
anton_wins_count = 0
danik_wins_count = 0
for win in s:
	if win == 'A':
		anton_wins_count += 1
	elif win == 'D':
		danik_wins_count += 1
if anton_wins_count == danik_wins_count:
	print('Friendship')
elif anton_wins_count > danik_wins_count:
	print('Anton')
else:
	print('Danik')


n = int(input())
s = str(input())
i1 = 0
i2 = 0
for x in list(s):
	if x == 'A':
		i1 += 1
	elif x == 'D':
		i2 += 1
if i1 < i2:
	print('Danik')
elif i1 > i2:
	print('Anton')
elif i1 == i2:
	print('Friendship')


n1 = int(input())
n = input()
c1 = n.count('A')
c2 = n.count('D')
if c1 == c2:
	print('Friendship')
elif c1 < c2:
	print('Danik')
else:
	print('Anton')


n = int(input())
m = input()
d = {}
c = 0
e = 0
for i in m:
	if i not in d:
		d[i] = 1
	else:
		d[i] = d[i] + 1
	for key in d:
		if key == 'A':
			c = d[key]
		else:
			e = d[key]
if c > e:
	print('Anton')
elif e > c:
	print('Danik')
else:
	print('Friendship')


def split(word):
	return [char for char in word]
n = int(input())
num = split(input())
cA = 0
cD = 0
for i in num:
	if i == 'A':
		cA += 1
	if i == 'D':
		cD += 1
if cA > cD:
	print('Anton')
elif cD > cA:
	print('Danik')
else:
	print('Friendship')


t = int(input())
s = input()
p = list(s)
c1 = 0
c2 = 0
for i in range(t):
	if p[i] == 'A':
		c1 = c1 + 1
	if p[i] == 'D':
		c2 = c2 + 1
if c1 > c2:
	print('Anton')
elif c1 < c2:
	print('Danik')
else:
	print('Friendship')


input()
w = input()
(a, b) = map(w.count, ('A', 'D'))
print('Anton' if a > b else 'Danik' if b > a else 'Friendship')


input()
lis = input()
a = lis.count('A')
b = len(lis) - a
if a > b:
	print('Anton')
elif a == b:
	print('Friendship')
else:
	print('Danik')


n = int(input())
L = input()
a = 0
for i in L:
	if i == 'A':
		a += 1
if a > n / 2:
	print('Anton')
	exit()
if a < n / 2:
	print('Danik')
	exit()
print('Friendship')
exit()


n = eval(input())
s = input()
a = s.count('A')
d = s.count('D')
if a == d:
	print('Friendship')
elif a < d:
	print('Danik')
else:
	print('Anton')


size = int(input())
games = str(input())
a = 0
d = 0
for letter in games:
	if letter == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
x = input()
a = 0
for i in x:
	if i == 'A':
		a += 1
if a > len(x) - a:
	print('Anton')
elif a < len(x) - a:
	print('Danik')
elif a == len(x) - a:
	print('Friendship')


count = int(input())
s = input()
antons = sum([1 for x in s if x == 'A'])
daniks = count - antons
if antons > daniks:
	print('Anton')
elif antons < daniks:
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = input()
lst = []
for i in a:
	lst.append(i)
if lst.count('A') > lst.count('D'):
	print('Anton')
elif lst.count('A') == lst.count('D'):
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = input()
l1 = 0
l2 = 0
for i in range(n):
	if s[i] == 'A':
		l1 += 1
	else:
		l2 += 1
if l1 > l2:
	print('Anton')
if l1 < l2:
	print('Danik')
if l1 == l2:
	print('Friendship')


x = int(input())
string = input()
if string.count('A') < len(string) / 2:
	print('Danik')
elif string.count('A') > len(string) / 2:
	print('Anton')
else:
	print('Friendship')


def main():
	n = int(input())
	v = input()
	A = v.count('A')
	if A == n // 2 and n % 2 == 0:
		print('Friendship')
	elif A > n // 2:
		print('Anton')
	else:
		print('Danik')
main()


num = int(input())
string1 = input()
if num != len(string1):
	print('')
elif string1.count('A') > string1.count('D'):
	print('Anton')
elif string1.count('A') < string1.count('D'):
	print('Danik')
else:
	print('Friendship')


from collections import Counter
n = int(input())
a = input()
count = Counter(a)
if count['A'] == count['D']:
	print('Friendship')
if count['A'] > count['D']:
	print('Anton')
if count['A'] < count['D']:
	print('Danik')


games = int(input())
results = input()
anton = 0
danik = 0
for i in results:
	if i == 'A':
		anton += 1
	elif i == 'D':
		danik += 1
	else:
		continue
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
else:
	print('Friendship')


def main():
	n = int(input())
	s = str(input())
	anton = 0
	danik = 0
	for i in s:
		if i == 'A':
			anton = anton + 1
		elif i == 'D':
			danik = danik + 1
	if anton > danik:
		print('Anton')
	if anton < danik:
		print('Danik')
	if anton == danik:
		print('Friendship')
if __name__ == main():
	main()


number_of_games = int(input())
chess = input()
if number_of_games - chess.count('A') > number_of_games / 2:
	print('Danik')
elif number_of_games - chess.count('A') < number_of_games / 2:
	print('Anton')
else:
	print('Friendship')


n = int(input())
s = input()
ls = list(s)
av = ls.count('A')
da = ls.count('D')
if av > da:
	print('Anton')
elif da > av:
	print('Danik')
elif av == da:
	print('Friendship')


def f(n, d):
	if d.count('A') > d.count('D'):
		return 'Anton'
	elif d.count('A') < d.count('D'):
		return 'Danik'
	else:
		return 'Friendship'
n = int(input())
d = input()
print(f(n, d))


n = int(input())
word = input()
anton_count = 0
danik_count = 0
for letter in word:
	if letter == 'A':
		anton_count = anton_count + 1
	elif letter == 'D':
		danik_count = danik_count + 1
if anton_count > danik_count:
	print('Anton')
elif danik_count > anton_count:
	print('Danik')
else:
	print('Friendship')


j = 0
x = int(input())
s = str(input())
for i in range(len(s)):
	if s[i] == 'A':
		j += 1
	else:
		j -= 1
if j == 0:
	print('Friendship')
elif j > 0:
	print('Anton')
else:
	print('Danik')


g = int(input())
w = input()
A = 0
D = 0
for i in range(g):
	if w[i] == 'A':
		A += 1
	else:
		D += 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


n = int(input())
inpStr = input()
a = inpStr.count('A')
b = len(inpStr) - a
if a > b:
	print('Anton')
elif b > a:
	print('Danik')
else:
	print('Friendship')


a = (int, input().split())
x = 0
y = 0
b = list(map(str, input().strip()))
for i in range(len(b)):
	if b[i] == 'A':
		x = x + 1
	elif b[i] == 'D':
		y = y + 1
if x > y:
	print('Anton')
elif x < y:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
an = dn = 0
for i in s:
	if i == 'D':
		dn += 1
	else:
		an += 1
if dn > an:
	print('Danik')
elif an > dn:
	print('Anton')
else:
	print('Friendship')


n = int(input())
s = input()
c = 0
for a in s:
	if a == 'A':
		c += 1
if c > len(s) / 2:
	print('Anton')
elif c < len(s) / 2:
	print('Danik')
else:
	print('Friendship')


n = int(input()) / 2
m = sum(['A' == x for x in input()])
if m > n:
	print('Anton')
elif m < n:
	print('Danik')
else:
	print('Friendship')


r = input()
string = input()
a = sum([-1 if i == 'A' else 1 for i in list(string)])
if a < 0:
	print('Anton')
elif a == 0:
	print('Friendship')
else:
	print('Danik')


n = int(input())
result = input()
a_win = result.count('A')
d_win = result.count('D')
if a_win > d_win:
	print('Anton')
if a_win == d_win:
	print('Friendship')
if a_win < d_win:
	print('Danik')


num_games = int(input())
s = input()
danik = s.count('D')
anton = num_games - danik
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
str = input()
a = []
x = 0
y = 0
if len(str) != n:
	print('false')
	str = input()
if str.isupper() == 0:
	print('false')
	str = input()
for i in range(0, len(str)):
	a.append(str[i])
for i in a:
	if (i != 'A') & (i != 'D'):
		print('false')
		str = input()
for i in a:
	if i == 'A':
		x += 1
	else:
		y += 1
if x > y:
	print('Anton')
elif x < y:
	print('Danik')
else:
	print('Friendship')


h = int(input())
p = input()
a = 0
for i in p:
	if i == 'A':
		a += 1
if h / 2 - a == 0:
	print('Friendship')
elif h / 2 - a > 0:
	print('Danik')
else:
	print('Anton')


inp1 = input()
inp2 = input()
Anton = 0
Danik = 0
for word in inp2:
	if word == 'A':
		Anton += 1
	elif word == 'D':
		Danik += 1
if Anton > Danik:
	print('Anton')
elif Danik > Anton:
	print('Danik')
else:
	print('Friendship')


num_of_games = int(input())
danik = input().count('D')
anton = num_of_games - danik
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
else:
	print('Friendship')


d = int(input())
i = input()
a = i.count('A') * 2
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


total = int(input())
res = input()
acnt = res.count('A')
dcnt = total - acnt
if acnt > dcnt:
	print('Anton')
elif acnt == dcnt:
	print('Friendship')
else:
	print('Danik')


N = input()
S = input()

def anton_danik(s: str=S, n: str=N):
	anton = 0
	danink = 0
	if n.isdigit():
		n = int(n)
	for i in range(n):
		if s[i] == 'A':
			anton += 1
		else:
			danink += 1
	if anton > danink:
		print('Anton')
	elif danink > anton:
		print('Danik')
	else:
		print('Friendship')
anton_danik(S, N)


from collections import Counter
a = int(input())
res = Counter(input())
if res['A'] > res['D']:
	print('Anton')
elif res['A'] < res['D']:
	print('Danik')
else:
	print('Friendship')


games_count = int(input(''))
who_won_letters = input('')
anton_wins = 0
danik_wins = 0
for letter in who_won_letters:
	if letter == 'A':
		anton_wins += 1
	if letter == 'D':
		danik_wins += 1
if anton_wins > danik_wins:
	print('Anton')
if danik_wins > anton_wins:
	print('Danik')
if anton_wins == danik_wins:
	print('Friendship')


input()
str = list(input())
v = 0
for c in str:
	if c == 'A':
		v = v + 1
	else:
		v = v - 1
if v > 0:
	print('Anton')
elif v < 0:
	print('Danik')
else:
	print('Friendship')


n = int(input())
res = input()
ncount = [0] * 2
for i in res:
	if i == 'A':
		ncount[0] += 1
	else:
		ncount[1] += 1
if ncount[0] > ncount[1]:
	print('Anton')
elif ncount[0] == ncount[1]:
	print('Friendship')
else:
	print('Danik')


y = input()
x = input()
a = 0
b = 0
for i in x:
	if i == 'A':
		a += 1
	if i == 'D':
		b += 1
print([['Friendship', 'Danik'][b > a], 'Anton'][a > b])


s = int(input())
x = input().count('A')
print([['Friendship', 'Danik'][2 * x < s], 'Anton'][2 * x > s])


a = int(input())
(z, b) = (0, 0)
st = input()
for i in st:
	if i == 'A':
		z += 1
	elif i == 'D':
		b += 1
if z > b:
	print('Anton')
elif b > z:
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = input()
(anton_wins, danik_wins) = (0, 0)
for i in range(n):
	if a[i] == 'A':
		anton_wins += 1
	else:
		danik_wins += 1
if anton_wins == danik_wins:
	print('Friendship')
elif anton_wins > danik_wins:
	print('Anton')
else:
	print('Danik')


n = int(input())
p = input()
c = 0
l = 0
for i in p:
	if i == 'A':
		c = c + 1
	else:
		l += 1
if c > l:
	print('Anton')
elif l > c:
	print('Danik')
else:
	print('Friendship')


N = int(input())
As = input()
NumA = As.count('A')
if NumA > len(As) / 2:
	print('Anton')
elif NumA < len(As) / 2:
	print('Danik')
else:
	print('Friendship')


num_games = input()
winners = list(input())
num_anton = 0
num_danik = 0
for winner in winners:
	if winner == 'A':
		num_anton = num_anton + 1
	elif winner == 'D':
		num_danik = num_danik + 1
if num_anton > num_danik:
	print('Anton')
elif num_danik > num_anton:
	print('Danik')
else:
	print('Friendship')


numberOfTimes = 0
numberOfTimes = input()
strOfChars = input()
countD = 0
countA = 0
for i in range(int(numberOfTimes)):
	if strOfChars[i] == 'D':
		countD = countD + 1
	if strOfChars[i] == 'A':
		countA = countA + 1
if countA > countD:
	print('Anton')
elif countD > countA:
	print('Danik')
else:
	print('Friendship')


a = int(input())
b = input()
c = 0
d = 0
while c < a:
	if b[c] == 'A':
		d += 1
	c += 1
if d > a / 2:
	print('Anton')
if d < a / 2:
	print('Danik')
if d == a / 2:
	print('Friendship')


n = int(input())
b = input()
list = []
for i in range(n):
	list.append(b[i])
c = list.count('A')
d = list.count('D')
if c > d:
	print('Anton')
elif d > c:
	print('Danik')
else:
	print('Friendship')


def solution(s, n):
	ctr = {'A': 0, 'D': 0}
	for c in s:
		ctr[c] += 1
	if ctr['A'] > ctr['D']:
		return 'Anton'
	elif ctr['A'] < ctr['D']:
		return 'Danik'
	else:
		return 'Friendship'
n = int(input())
s = input()
print(solution(s, n))


n = int(input())
s = input()[:n]
antonWon = 0
danikWon = 0
for i in range(len(s)):
	if s[i] == 'A':
		antonWon += 1
	else:
		danikWon += 1
if antonWon > danikWon:
	print('Anton')
elif danikWon > antonWon:
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = input()
D = []
A = []
for i in range(n):
	if a[i] == 'D':
		D.append(a[i])
	else:
		A.append(a[i])
if len(D) > len(A):
	print('Danik')
elif len(A) > len(D):
	print('Anton')
else:
	print('Friendship')


n = int(input())
plays = input()
anton = plays.count('A')
danick = plays.count('D')
if anton > danick:
	print('Anton')
elif danick > anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
games = input()
ant = 0
dan = 0
for k in games:
	if k == 'A':
		ant += 1
	else:
		dan += 1
if ant > dan:
	print('Anton')
elif ant == dan:
	print('Friendship')
else:
	print('Danik')


n = int(input())
txt = input()
l = [ch for ch in txt]
a = 0
d = 0
for c in l:
	if c == 'A':
		a += 1
	elif c == 'D':
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
elif a == d:
	print('Friendship')


inp = lambda : map(int, input().split(' '))
n = input()
s = input()
a = s.count('A')
d = s.count('D')
if a < d:
	print('Danik')
elif d < a:
	print('Anton')
else:
	print('Friendship')


(n, s) = (input(), input())
(n1, n2) = (s.count('A'), s.count('D'))
if n1 == n2:
	print('Friendship')
elif n1 < n2:
	print('Danik')
else:
	print('Anton')


from collections import Counter
number = int(input())
str = input()
list = []
for i in str:
	list.append(i)
coun = Counter(list)
if coun['A'] > coun['D']:
	print('Anton')
elif coun['D'] > coun['A']:
	print('Danik')
else:
	print('Friendship')


n = int(input())
if 1 <= n <= 100000:
	s = list(input())

def solve(n, s):
	Anton = 0
	Danik = 0
	won = 0
	for i in s:
		if i == 'A':
			Anton += 1
		else:
			Danik += 1
		if Anton > Danik:
			won = 'Anton'
		elif Danik > Anton:
			won = 'Danik'
		else:
			won = 'Friendship'
	return won
print(solve(n, s))


n = int(input())
m = input()
Anton = m.count('A')
Danik = m.count('D')
for i in range(n):
	if Anton > Danik:
		print('Anton')
		break
	elif Danik > Anton:
		print('Danik')
		break
	elif Anton == Danik:
		print('Friendship')
		break


n = int(input())
s = str(input())
count = 0
for a in s:
	if a == 'A':
		count += 1
if count > n - count:
	print('Anton')
elif count == n - count:
	print('Friendship')
elif count < n - count:
	print('Danik')


n = int(input())
str1 = input()
list1 = list()
for i in str1:
	list1.append(i)
A_count = 0
D_count = 0
for i in list1:
	if i == 'A':
		A_count += 1
	else:
		D_count += 1
if A_count > D_count:
	print('Anton')
elif D_count > A_count:
	print('Danik')
else:
	print('Friendship')


cases = int(input())
games = input()
List = [0] * cases
for i in range(cases):
	List[i] = games[i]
count_A = 0
count_D = 0
for k in range(cases):
	if List[k] == 'D':
		count_D += 1
	elif List[k] == 'A':
		count_A += 1
if count_A > count_D:
	print('Anton')
elif count_A < count_D:
	print('Danik')
elif count_A == count_D:
	print('Friendship')


import re
n = int(input())
games = input()
antn = len(re.findall('[A]', games))
dnik = len(re.findall('[D]', games))
if antn > dnik:
	print('Anton')
elif dnik > antn:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input().upper()
if s.count('A') + s.count('D') != len(s) or s.count('A') + s.count('D') != n:
	raise ValueError
if s.count('A') > s.count('D'):
	print('Anton')
elif s.count('D') > s.count('A'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
x = input()
p = x.count('A')
q = x.count('D')
if p > q:
	print('Anton')
if p < q:
	print('Danik')
if p == q:
	print('Friendship')


n = input()
n = int(n)
result = input()
result = list(result)
anton = result.count('A')
danik = result.count('D')
if anton > danik:
	print('Anton')
elif anton == danik:
	print('Friendship')
else:
	print('Danik')


input()
s = input()
c = 0
for i in s:
	if i == 'A':
		c += 1
	else:
		c -= 1
print('Anton' if c > 0 else 'Danik' if c < 0 else 'Friendship')


b = int(input())
a = input()
ls = []
x = len(a)
for i in range(len(a)):
	ls.append(a[i])
c = ls.count('A')
d = ls.count('D')
if c > d:
	print('Anton')
elif c < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
games = input()
a = 0
for g in games:
	if g == 'A':
		a += 1
if a == n / 2:
	print('Friendship')
elif a > n / 2:
	print('Anton')
else:
	print('Danik')


n = int(input())
word = input()
anton = 0
for i in word:
	if i == 'A':
		anton += 1
if anton > n / 2:
	print('Anton')
elif anton < n / 2:
	print('Danik')
else:
	print('Friendship')


a = int(input())
m = input()
i = 0
j = 0
for x in m:
	if x == 'A':
		i += 1
	else:
		j += 1
if i > j:
	print('Anton')
elif j == i:
	print('Friendship')
else:
	print('Danik')


def main():
	input()
	a = input()
	ac = dc = 0
	for x in a:
		if x == 'A':
			ac += 1
		else:
			dc += 1
	if ac > dc:
		print('Anton')
	elif dc > ac:
		print('Danik')
	else:
		print('Friendship')
	pass
main()


n = int(input())
str1 = input()
c = 0
for i in range(0, n):
	if str1[i] == 'A':
		c += 1
d = n - c
if c > d:
	print('Anton')
elif c == d:
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = input()
a = s.count('A')
d = s.count('D')
m = max(a, d)
if a == d:
	print('Friendship')
elif m == a:
	print('Anton')
else:
	print('Danik')


n = int(input())
results = input()
counter_A = 0
counter_D = 0
for i in range(n):
	if results[i] == 'D':
		counter_D += 1
	else:
		counter_A += 1
if counter_D > counter_A:
	print('Danik')
elif counter_A > counter_D:
	print('Anton')
else:
	print('Friendship')


n = int(input())
s = str(input())
a = s.count('A')
b = s.count('D')
if n == len(s):
	if a > b:
		print('Anton')
	elif b > a:
		print('Danik')
	elif a == b:
		print('Friendship')


number_of_matches = input()
counter_a = 0
counter_d = 0
matches_string = input()
matches = [x for x in matches_string]
for x in matches_string:
	if x == 'A':
		counter_a += 1
	else:
		counter_d += 1
if counter_a > counter_d:
	print('Anton')
elif counter_a < counter_d:
	print('Danik')
else:
	print('Friendship')


m = int(input())
s = input()
k = len(s)
j = 0
l = 0
for i in range(0, k):
	if s[i] == 'A':
		j = j + 1
	else:
		l = l + 1
if j > l:
	print('Anton')
elif j < l:
	print('Danik')
else:
	print('Friendship')


from collections import Counter
(n, r) = (int(input()), Counter(input()))
print(('Anton', 'Danik', 'Friendship')[2 if r['A'] == r['D'] else int(bool(r['D'] > r['A']))])


import sys
from math import *

def minp():
	return sys.stdin.readline().strip()

def mint():
	return int(minp())

def mints():
	return map(int, minp().split())
n = mint()
s = minp()
a = s.count('A')
d = s.count('D')
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


import sys
input = lambda : sys.stdin.readline()

def Main():
	n = int(input())
	s = input()
	A = s.count('A')
	D = s.count('D')
	if A == D:
		print('Friendship')
	elif A > D:
		print('Anton')
	else:
		print('Danik')
Main()


n = int(input())
s = input()
w = s.count('A')
g = s.count('D')
if w > g:
	print('Anton')
elif g > w:
	print('Danik')
else:
	print('Friendship')


numero = input()
secuencia = input()
a = 0
d = 0
for c in secuencia:
	if c == 'A':
		a += 1
	elif c == 'D':
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
st = list(input())
i = 0
ca = 0
cd = 0
for i in range(n):
	if st[i] == 'A':
		ca += 1
	else:
		cd += 1
if ca > cd:
	print('Anton')
elif ca < cd:
	print('Danik')
else:
	print('Friendship')


n = int(input())
vv = input()
aa = 0
dd = 0
for i in range(0, len(vv)):
	if vv[i] == 'A':
		aa += 1
	elif vv[i] == 'D':
		dd += 1
if aa > dd:
	print('Anton')
elif aa < dd:
	print('Danik')
elif aa == dd:
	print('Friendship')


games_num = int(input())
games = input()
anton = 0
danik = 0
for g in games:
	if g == 'A':
		anton += 1
	elif g == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
AntonWin = 0
DanikWin = 0
for I in s:
	if I == 'A':
		AntonWin += 1
	elif I == 'D':
		DanikWin += 1
if AntonWin > DanikWin:
	print('Anton')
elif DanikWin > AntonWin:
	print('Danik')
else:
	print('Friendship')


n = int(input())
scores = input()
a = 0
d = 0
for score in scores:
	if score == 'A':
		a = a + 1
	elif score == 'D':
		d = d + 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = input()
n = int(n)
a = list(input())
Acount = 0
Dcount = 0
for i in range(n):
	if a[i] == 'A':
		Acount += 1
	elif a[i] == 'D':
		Dcount += 1
	else:
		Acount += 0
		Dcount += 0
if Dcount > Acount:
	print('Danik')
elif Dcount < Acount:
	print('Anton')
else:
	print('Friendship')


input()
seq = input()
A = seq.count('A')
D = seq.count('D')
if A > D:
	print('Anton')
elif A < D:
	print('Danik')
else:
	print('Friendship')


games_played = int(input())
who_won = input()
count_anton = 0
count_danik = 0
for x in range(len(who_won)):
	if who_won[x] == 'A':
		count_anton += 1
	else:
		count_danik += 1
if count_anton > count_danik:
	print('Anton')
elif count_anton == count_danik:
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = input()
Anton_win = s.count('A')
Danik_win = s.count('D')
if Anton_win == Danik_win:
	print('Friendship')
elif Anton_win < Danik_win:
	print('Danik')
else:
	print('Anton')


input()
s = input()
w = s.count('A')
if w == len(s) / 2:
	print('Friendship')
elif w > len(s) / 2:
	print('Anton')
else:
	print('Danik')


GAME_NUM = int(input())
WIN_GAME = str(input())
ANTON_WIN_NUM = 0
DANIK_WIN_NUM = 0
for i in WIN_GAME:
	if i is 'A':
		ANTON_WIN_NUM += 1
	else:
		DANIK_WIN_NUM += 1
tmp = ANTON_WIN_NUM - DANIK_WIN_NUM
if tmp > 0:
	print('Anton')
elif tmp < 0:
	print('Danik')
else:
	print('Friendship')


def main():
	input()
	sp = list(input())
	(A, D) = (0, 0)
	for el in sp:
		if el == 'A':
			A += 1
		elif el == 'D':
			D += 1
	if A > D:
		print('Anton')
	elif D > A:
		print('Danik')
	else:
		print('Friendship')
	return 0
main()


import sys
from collections import Counter
n = sys.stdin.readline()
w = sys.stdin.readline().strip()
c = Counter(w)
if c['A'] > c['D']:
	print('Anton')
elif c['D'] > c['A']:
	print('Danik')
else:
	print('Friendship')


from sys import stdin
input = stdin.readline
a = input()
b = input()
c = b.count('A')
d = b.count('D')
if c > d:
	print('Anton')
elif c < d:
	print('Danik')
elif c == d:
	print('Friendship')


(n, input_str) = (int(input()), input())
(ca, cd) = (input_str.count('A'), input_str.count('D'))
if ca > cd:
	print('Anton')
elif ca < cd:
	print('Danik')
else:
	print('Friendship')


from sys import stdin

def won_more(n, outcomes):
	anton_wins = sum((1 for c in outcomes if c == 'A'))
	danik_wins = n - anton_wins
	if anton_wins > danik_wins:
		return 'Anton'
	elif anton_wins < danik_wins:
		return 'Danik'
	return 'Friendship'
lines = stdin.readlines()
n = int(lines[0])
outcomes = lines[1]
print(won_more(n, outcomes))


n = input()
arr = input()
a = 0
d = 0
for item in arr:
	if item == 'A':
		a += 1
	else:
		d += 1
if a == d:
	print('Friendship')
elif a > d:
	print('Anton')
else:
	print('Danik')


n = int(input())
l = input()
a = 0
d = 0
for j in l:
	if j.upper() == 'D':
		d = d + 1
	if j.upper() == 'A':
		a = a + 1
if d > a:
	print('Danik')
elif a > d:
	print('Anton')
else:
	print('Friendship')


s = str(input())
p = 0
o = 0
s = str(input())
for i in range(len(s)):
	if s[i] == 'A':
		p = p + 1
	elif s[i] == 'D':
		o = o + 1
if p > o:
	print('Anton')
elif p < o:
	print('Danik')
else:
	print('Friendship')


from collections import Counter
from sys import stdin
N = stdin.readline()
count = Counter(stdin.readline())
if count['A'] > count['D']:
	print('Anton')
elif count['A'] < count['D']:
	print('Danik')
else:
	print('Friendship')


n = int(input())
games = input()
count1 = 0
count2 = 0
for game in games:
	if game == 'A':
		count1 += 1
	else:
		count2 += 1
if count1 > count2:
	print('Anton')
elif count1 < count2:
	print('Danik')
else:
	print('Friendship')


(_, s) = (input(), input())
bias = sum((1 if ch == 'A' else -1 for ch in s))
print('Anton' if bias > 0 else 'Danik' if bias < 0 else 'Friendship')


n = int(input())
s1 = input()
ant = 0
dan = 0
for i in range(len(s1)):
	if s1[i] == 'A':
		ant += 1
	else:
		dan += 1
if ant > dan:
	print('Anton')
elif ant == dan:
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = input()
ak = 0
dk = 0
for i in s:
	if i == 'A':
		ak += 1
	if i == 'D':
		dk += 1
if ak == dk:
	print('Friendship')
elif ak > dk:
	print('Anton')
else:
	print('Danik')


n = int(input())
x = input()
list1 = list(x)
a = 0
d = 0
for i in range(0, n, 1):
	if list1[i] == 'A':
		a = a + 1
	else:
		d = d + 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


from collections import Counter
n = int(input().strip())
games = Counter(list(input().strip()))
if games['A'] > games['D']:
	print('Anton')
elif games['D'] > games['A']:
	print('Danik')
else:
	print('Friendship')


n = input()
txt = list(input())
countA = txt.count('A')
countD = txt.count('D')
if countA > countD:
	print('Anton')
if countA < countD:
	print('Danik')
if countA == countD:
	print('Friendship')


bob = input().split
games = input()
dan = 0
ant = 0
for i in games:
	if i == 'A':
		ant += 1
	if i == 'D':
		dan += 1
if ant > dan:
	print('Anton')
if ant < dan:
	print('Danik')
if ant == dan:
	print('Friendship')


n = int(input())
s = input()
a = s.count('D')
if a == n / 2:
	print('Friendship')
else:
	print('ADnatnoink'[a > n / 2::2])


n = int(input())
s = input()
antonio = s.count('A')
danik = s.count('D')
if antonio > danik:
	print('Anton')
elif danik > antonio:
	print('Danik')
else:
	print('Friendship')


def main():
	input()
	s = input()
	(a, b) = (s.count('A'), s.count('D'))
	if a > b:
		print('Anton')
	elif a < b:
		print('Danik')
	else:
		print('Friendship')
main()


z = int(input())
x = input()
s = x.count('A')
v = x.count('D')
if s > v:
	print('Anton')
elif s < v:
	print('Danik')
else:
	print('Friendship')


numberOfGames = int(input(''))
wonGames = input('')
A = 0
D = 0
for i in range(numberOfGames):
	if wonGames[i] == 'A':
		A += 1
	elif wonGames[i] == 'D':
		D += 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


n = int(input())
game = input()
countA = game.count('A')
if countA > n / 2:
	print('Anton')
elif countA == n / 2:
	print('Friendship')
else:
	print('Danik')


size = int(input())
games = input()
danik_wins = 0
for i in games:
	if i == 'D':
		danik_wins += 1
anton_wins = size - danik_wins
if danik_wins > anton_wins:
	print('Danik')
elif danik_wins < anton_wins:
	print('Anton')
elif danik_wins == anton_wins:
	print('Friendship')


a = int(input())
b = str(input())
tot1 = 0
tot2 = 0
for x in b:
	if x == 'A':
		tot1 += 1
	if x == 'D':
		tot2 += 1
if tot1 == tot2:
	print('Friendship')
elif tot1 > tot2:
	print('Anton')
elif tot1 < tot2:
	print('Danik')


def get():
	return [int(x) for x in input().split()]
input()
s = input()
a = sum((c == 'A' for c in s))
if 2 * a < len(s):
	print('Danik')
elif 2 * a == len(s):
	print('Friendship')
else:
	print('Anton')


def antonAndDanik():
	n = int(input())
	string = input()
	anton = string.count('A')
	danik = string.count('D')
	if anton > danik:
		print('Anton')
	elif anton < danik:
		print('Danik')
	else:
		print('Friendship')
antonAndDanik()


a = input()
arr = list(input())
if arr.count('A') > arr.count('D'):
	print('Anton')
elif arr.count('D') > arr.count('A'):
	print('Danik')
else:
	print('Friendship')


a = input()
s = input()
anton = danik = 0
for i in s:
	if i == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
else:
	print('Friendship')


foo = input()
inp = input()
a = inp.count('A')
d = inp.count('D')
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
txt = input()
(count_A, count_D) = (0, 0)
for char in txt:
	if char == 'A':
		count_A += 1
	else:
		count_D += 1
if count_A > count_D:
	print('Anton')
elif count_A < count_D:
	print('Danik')
else:
	print('Friendship')


(n, inp) = (int(input()), input())
(anton, danik) = (inp.count('A'), inp.count('D'))
print('Anton' if anton > danik else 'Danik' if danik > anton else 'Friendship')


n = int(input())
line = str(input())
flop = 0
for it in line:
	if it == 'A':
		flop += 1
	else:
		flop -= 1
if flop > 0:
	print('Anton')
elif flop < 0:
	print('Danik')
else:
	print('Friendship')


(n, s) = (int(input()), input())
print([['Friendship', 'Danik'][s.count('A') < s.count('D')], 'Anton'][s.count('A') > s.count('D')])


n = int(input())
s = list(input())
a_count = s.count('A')
b_count = n - a_count
if a_count > b_count:
	print('Anton')
elif a_count == b_count:
	print('Friendship')
else:
	print('Danik')


n = int(input())
games = input()
anton = 0
for winner in games:
	if winner == 'A':
		anton += 1
if anton > n - anton:
	print('Anton')
elif anton < n - anton:
	print('Danik')
else:
	print('Friendship')


games = int(input())
winners = input()
anthon = 0
danik = 0
for i in range(games):
	if winners[i] == 'A':
		anthon += 1
	else:
		danik += 1
if anthon > danik:
	print('Anton')
elif danik > anthon:
	print('Danik')
else:
	print('Friendship')


n = int(input())
r = str(input())
d = list(r)
A = 0
D = 0
for i in d:
	if i == 'A':
		A += 1
	else:
		D += 1
if A < D:
	print('Danik')
if A > D:
	print('Anton')
if A == D:
	print('Friendship')


def main():
	n = int(input())
	S = input().rstrip()
	if S.count('A') == S.count('D'):
		print('Friendship')
	else:
		print('Anton' if S.count('A') > S.count('D') else 'Danik')
main()


n = int(input())
w = input()
c = w.count('A')
c1 = w.count('D')
if c > c1:
	print('Anton')
elif c < c1:
	print('Danik')
else:
	print('Friendship')


n = float(input()) / 2
s = input().count('D')
if s > n:
	print('Danik')
elif s < n:
	print('Anton')
else:
	print('Friendship')


n = int(input())
s = input()
x = s.replace('A', '')
danik = len(x)
anton = n - danik
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


def Game(n, s):
	c = 0
	c1 = 0
	for i in range(n):
		if s[i] == 'A':
			c = c + 1
		if s[i] == 'D':
			c1 = c1 + 1
	if c > c1:
		return 'Anton'
	elif c < c1:
		return 'Danik'
	else:
		return 'Friendship'
x = int(input())
s = input()
print(Game(x, s))


t = int(input())
n = input()
k = str(n)
p = list(k)
frnd1 = 0
frnd2 = 0
for i in range(len(p)):
	if p[i] == 'D':
		frnd1 = frnd1 + 1
	elif p[i] == 'A':
		frnd2 = frnd2 + 1
if frnd1 == frnd2:
	print('Friendship')
elif frnd1 < frnd2:
	print('Anton')
elif frnd2 < frnd1:
	print('Danik')


def main(n, A):
	m = 0
	for c in A:
		if c == 'A':
			m += 1
	if n % 2 == 0 and m == n // 2:
		return 'Friendship'
	if m > n // 2:
		return 'Anton'
	return 'Danik'
print(main(int(input()), input()))


num = int(input())
strr = input()
d = strr.count('D')
a = strr.count('A')
if a < d:
	print('Danik')
elif a > d:
	print('Anton')
else:
	print('Friendship')


n = input()
a = input()
(count, count_) = (0, 0)
for i in a:
	if i == 'A':
		count += 1
	else:
		count_ += 1
if count == count_:
	print('Friendship')
else:
	print(('Anton', 'Danik')[count < count_])


nh = int(input())
sh = input()
ca = 0
cd = 0
for i in sh:
	if i == 'A':
		ca = ca + 1
	else:
		cd = cd + 1
if ca > cd:
	print('Anton')
elif ca < cd:
	print('Danik')
else:
	print('Friendship')


b = input()
a = input()
count = 0
for i in a:
	if i.startswith('D'):
		count += 1
	elif i.startswith('A'):
		count -= 1
if count < 0:
	print('Anton')
elif count == 0:
	print('Friendship')
else:
	print('Danik')


import sys
n = int(input())
chessWinningInputs = sys.stdin.read(n)
countAnton = 0
countDanik = 0
for c in chessWinningInputs:
	if c == 'A':
		countAnton = countAnton + 1
	elif c == 'D':
		countDanik = countDanik + 1
if countAnton > countDanik:
	print('Anton')
elif countAnton < countDanik:
	print('Danik')
else:
	print('Friendship')


import re
n = int(input())
x = input()
p = re.findall('A', x)
q = re.findall('D', x)
if len(p) > len(q):
	print('Anton')
elif len(q) > len(p):
	print('Danik')
else:
	print('Friendship')


n = int(input())
str2 = input().upper()
d = str2.count('D')
a = n - d
if d < a:
	print('Anton')
elif a < d:
	print('Danik')
elif d == a:
	print('Friendship')


def chess(results):
	anton = results.count('A')
	danik = results.count('D')
	if anton > danik:
		return 'Anton'
	elif anton < danik:
		return 'Danik'
	else:
		return 'Friendship'
number_of_games = int(input())
results_of_games = input()
print(chess(results_of_games))


n = int(input())
x = input()
a = x.count('A')
d = x.count('D')
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
elif a == d:
	print('Friendship')


ng = int(input())
l = list(map(str, input().split()))
for i in l:
	if i.count('A') > i.count('D'):
		print('Anton')
	elif i.count('A') < i.count('D'):
		print('Danik')
	else:
		print('Friendship')


n = int(input())
l = list(input())
c = 0
d = 0
for i in l:
	if i == 'A':
		c += 1
		continue
	elif i == 'D':
		d += 1
		continue
if c > d:
	print('Anton')
elif c < d:
	print('Danik')
else:
	print('Friendship')


import sys
for s in sys.stdin:
	strs = input()
	if strs.count('A') == strs.count('D'):
		print('Friendship')
	elif strs.count('A') >= strs.count('D'):
		print('Anton')
	elif strs.count('A') <= strs.count('D'):
		print('Danik')


a = int(input())
b = input()
b1 = b.count('D')
b2 = b.count('A')
if b1 > b2:
	print('Danik')
elif b1 < b2:
	print('Anton')
elif b1 == b2:
	print('Friendship')


def func():
	n = int(input())
	s = input()
	l1 = [x for k in [list(map(str, i)) for i in s] for x in k]
	(a, d) = ([i for i in l1 if i == 'A'], [i for i in l1 if i == 'D'])
	return 'Anton' if len(a) > len(d) else 'Danik' if len(d) > len(a) else 'Friendship'
print(func())


n = int(input())
games = [i for i in input()]
dan = 0
ant = 0
for j in games:
	if j == 'D':
		dan += 1
	else:
		ant += 1
if dan > ant:
	print('Danik')
elif dan == ant:
	print('Friendship')
else:
	print('Anton')


n = int(input())
st = input()
couA = st.count('A')
couD = st.count('D')
if couA > couD:
	print('Anton')
elif couD > couA:
	print('Danik')
else:
	print('Friendship')


num = input()
word = input()
if word.count('A') > word.count('D'):
	print('Anton')
elif word.count('A') < word.count('D'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = str(input()).upper()
i = s.count('A')
j = s.count('D')
if i > j:
	print('Anton')
elif i < j:
	print('Danik')
else:
	print('Friendship')


n = input()
score = input()
print(['Friendship', 'Anton', 'Danik'][(score.count('A') > score.count('D')) - (score.count('D') > score.count('A'))])


n = int(input())
ar = input()
k = ar.count('A')
if k == n / 2:
	print('Friendship')
elif k > n / 2:
	print('Anton')
else:
	print('Danik')


n = int(input())
games = input()
anton = 0
danik = 0
for player in games:
	if player == 'A':
		anton += 1
	else:
		danik += 1
res = 'Friendship'
if anton > danik:
	res = 'Anton'
if danik > anton:
	res = 'Danik'
print(res)


def read_int():
	return int(input().strip())

def read_ints():
	return list(map(int, input().strip().split(' ')))

def solve():
	N = read_int()
	s = input().strip()
	A = 0
	for c in s:
		if c == 'A':
			A += 1
		else:
			A -= 1
	if A > 0:
		return 'Anton'
	elif A < 0:
		return 'Danik'
	return 'Friendship'
print(solve())


I = input
N = int(I())
a = I().count('A') * 2
print('Anton' if a > N else 'Danik' if a < N else 'Friendship')


n = int(input())
s = input()
cA = 0
cD = 0
cA = s.count('A')
cD = s.count('D')
if cA > cD:
	print('Anton')
elif cA < cD:
	print('Danik')
else:
	print('Friendship')


n = int(input())
st = input()
anton = st.count('A')
danik = st.count('D')
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
elif anton == danik:
	print('Friendship')


from collections import Counter
n = int(input())
string = str(input())
cnt = dict(Counter(string))
if 'D' not in cnt:
	print('Anton')
elif 'A' not in cnt:
	print('Danik')
elif cnt['A'] > cnt['D']:
	print('Anton')
elif cnt['A'] < cnt['D']:
	print('Danik')
else:
	print('Friendship')


(_, table, ranking) = (input(), input(), {})
ranking['A'] = ranking['D'] = 0
for game in table:
	ranking[game] += 1
if ranking['A'] > ranking['D']:
	print('Anton')
elif ranking['A'] < ranking['D']:
	print('Danik')
else:
	print('Friendship')


n = int(input())
res = input()
A = 0
D = 0
for win in res:
	if win == 'A':
		A += 1
	else:
		D += 1
if A > D:
	print('Anton')
if A == D:
	print('Friendship')
if A < D:
	print('Danik')


(n, g) = (input(), input())
(a, d) = (g.count('A'), g.count('D'))
if a != d:
	print('Anton' if a > d else 'Danik')
else:
	print('Friendship')


N = int(input())
S = input()
ca = 0
cd = 0
for s in S:
	if s == 'A':
		ca += 1
	else:
		cd += 1
if ca < cd:
	print('Danik')
elif ca > cd:
	print('Anton')
else:
	print('Friendship')


a = int(input())
s = str(input())
l = s.count('A')
k = s.count('D')
if l > k:
	print('Anton')
elif l < k:
	print('Danik')
else:
	print('Friendship')


n = int(input())
string = input()
if string.count('A') > n // 2:
	print('Anton')
elif string.count('D') > n // 2:
	print('Danik')
else:
	print('Friendship')


n = int(input())
A = list(input())
m = A.count('A')
if 2 * m > n:
	print('Anton')
elif 2 * m < n:
	print('Danik')
else:
	print('Friendship')


x = int(input())
st = list(map(str, input()[:x]))
(ca, cd) = (0, 0)
for i in st:
	if i == 'A':
		ca += 1
	else:
		cd += 1
if cd > ca:
	print('Danik')
elif ca > cd:
	print('Anton')
else:
	print('Friendship')


_ = input()
l = input()
A = 0
D = 0
for c in l:
	if c == 'A':
		A += 1
	else:
		D += 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


n = int(input())
input_str = input()
(A_num, D_num) = (0, 0)
for char in input_str:
	if char == 'A':
		A_num += 1
	else:
		D_num += 1
if A_num > D_num:
	print('Anton')
elif A_num < D_num:
	print('Danik')
else:
	print('Friendship')


a = int(input())
s = input()
an = s.count('A')
dan = s.count('D')
if an > dan:
	print('Anton')
elif an < dan:
	print('Danik')
else:
	print('Friendship')


x = int(input())
a = input()
a.upper()
p = 0
q = 0
for char in a:
	if char == 'A':
		p = p + 1
	if char == 'D':
		q = q + 1
if p > q:
	print('Anton')
if q > p:
	print('Danik')
if p == q:
	print('Friendship')


n = int(input())
results = list(input())
count_Anton = results.count('A')
count_Danik = results.count('D')
if count_Anton > count_Danik:
	print('Anton')
elif count_Anton == count_Danik:
	print('Friendship')
else:
	print('Danik')


n = int(input())
row = input()
c = 0
for e in row:
	if e == 'A':
		c += 1
if c > len(row) - c:
	print('Anton')
elif len(row) == 2 * c:
	print('Friendship')
else:
	print('Danik')


num_games = int(input())
outcome = input()
if outcome.count('A') > outcome.count('D'):
	print('Anton')
elif outcome.count('A') < outcome.count('D'):
	print('Danik')
else:
	print('Friendship')


n = eval(input())
s = input()
(na, nd) = (0, 0)
for i in range(n):
	if s[i] == 'A':
		na = na + 1
	elif s[i] == 'D':
		nd = nd + 1
if na > nd:
	print('Anton')
elif na < nd:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
if 'D' in s:
	k = s.count('D')
	if k > n - k:
		print('Danik')
	elif k == n - k:
		print('Friendship')
	else:
		print('Anton')
else:
	print('Anton')


i = int(input())
j = input()
k = j.count('A')
x = j.count('D')
if k > x:
	print('Anton')
elif x == k:
	print('Friendship')
else:
	print('Danik')


number = int(input())
List = input()
aNum = 0
dNum = 0
for letter in List:
	if letter == 'A':
		aNum += 1
	else:
		dNum += 1
if aNum > dNum:
	print('Anton')
elif dNum > aNum:
	print('Danik')
else:
	print('Friendship')


n = int(input())
str = input()
a = 0
b = 0
for i in range(n):
	if str[i] == 'A':
		a += 1
	else:
		b += 1
ans = 'Friendship'
if a > b:
	ans = 'Anton'
if b > a:
	ans = 'Danik'
print(ans)


d = input()
a = input()
c = 0
for i in a:
	if i == 'D':
		c += 1
if c > len(a) - c:
	print('Danik')
elif c < len(a) - c:
	print('Anton')
else:
	print('Friendship')


numGames = int(input())
gamesWon = input()
(anton, danik) = (0, 0)
for name in gamesWon:
	if name == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
else:
	print('Friendship')


g = int(input())
p = input()
a = 0
d = 0
for i in p:
	if i == 'A':
		a += 1
	elif i == 'D':
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


num_games = int(input())
result_winner = input()
count_anton = 0
count_danik = 0
half_way = num_games / 2
final_winner = 'None'
for each_win in result_winner:
	if each_win == 'A':
		count_anton += 1
	else:
		count_danik += 1
	if count_anton > half_way or count_danik > half_way:
		if count_anton > count_danik:
			print('Anton')
			final_winner = 'Anton'
			break
		elif count_danik > count_anton:
			print('Danik')
			final_winner = 'Danik'
			break
		else:
			a = 4
if final_winner == 'Anton' or final_winner == 'Danik':
	a = 6
elif count_anton > count_danik:
	print('Anton')
elif count_danik > count_anton:
	print('Danik')
else:
	print('Friendship')


def iip():
	return int(input())

def sip():
	return input()

def mip():
	return map(int, input().split())

def lip():
	return list(map(int, input().split()))
t = iip()
s = sip()
a = d = 0
for i in range(t):
	if s[i] == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


import string
games = int(input())
s = input()
valid = ['D', 'A']
D = 0
A = 0

def upperalpha(s):
	return s.isupper() and s.isalpha()
if upperalpha(s):
	if any((char in valid for char in s)):
		for i in s:
			if i == 'D':
				D = D + 1
			elif i == 'A':
				A = A + 1
			else:
				print('sad')
	else:
		print('Invalid')
	if D > A:
		print('Danik')
	elif A > D:
		print('Anton')
	else:
		print('Friendship')


try:
	n = int(input())
	s = input()
	if s.count('A') > s.count('D'):
		print('Anton')
	elif s.count('D') > s.count('A'):
		print('Danik')
	else:
		print('Friendship')
except:
	pass


n = int(input())
s = input()
j = len(s)
if j == n:
	c = list(s)
	a = 0
	d = 0
	for i in c:
		if i == 'A':
			a += 1
		elif i == 'D':
			d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
elif a == d:
	print('Friendship')


n = int(input())
s = str(input())
found_danik = s.count('D')
found_anton = n - found_danik
if found_danik > found_anton:
	print('Danik')
elif found_anton > found_danik:
	print('Anton')
else:
	print('Friendship')


def ans(arr):
	cnt_A = arr.count('A')
	cnt_B = t - cnt_A
	if cnt_A > cnt_B:
		return 'Anton'
	elif cnt_A < cnt_B:
		return 'Danik'
	return 'Friendship'
t = int(input())
n = list(input())
print(ans(n))


y = input()
s = input()
a = 0
b = 0
for i in s:
	if i == 'D':
		a += 1
	else:
		b += 1
if a > b:
	print('Danik')
elif a < b:
	print('Anton')
else:
	print('Friendship')


n = int(input())
letter = input().strip()
lettera = 0
letterd = 0
for i in range(n):
	if letter[i] == 'A':
		lettera += 1
	else:
		letterd += 1
if lettera > letterd:
	print('Anton')
elif lettera < letterd:
	print('Danik')
else:
	print('Friendship')


n = int(input())
games = input()
a = games.count('A')
d = len(games) - a
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
w = input().upper()
a = 0
d = 0
for i in w:
	if i == 'A':
		a = a + 1
	elif i == 'D':
		d = d + 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


def main(word):
	d = 0
	a = 0
	for i in word:
		if i == 'D':
			d += 1
		else:
			a += 1
	if a < d:
		return 'Danik'
	elif a > d:
		return 'Anton'
	else:
		return 'Friendship'
x = input('')
y = input('')
print(main(y))


n = int(input())
A = list(input())
ans1 = A.count('A')
ans2 = A.count('D')
if ans1 > ans2:
	print('Anton')
elif ans2 > ans1:
	print('Danik')
else:
	print('Friendship')


x = input('')
x = int(x)
w = input('')
A_count = 0
D_count = 0
counter = 0
while counter < x:
	if w[counter] == 'A':
		A_count += 1
	else:
		D_count += 1
	counter += 1
if D_count == A_count:
	print('Friendship')
elif D_count > A_count:
	print('Danik')
else:
	print('Anton')


a = int(input())
s = input()
lst = list(s)
m = 0
n = 0
for r in lst:
	if r == 'A':
		m += 1
	elif r == 'D':
		n += 1
if m > n:
	print('Anton')
elif m < n:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
a = 0
d = 0
for i in range(n):
	if ord(s[i]) == 65:
		a += 1
	elif ord(s[i]) == 68:
		d += 1
if a == d:
	print('Friendship')
elif a < d:
	print('Danik')
else:
	print('Anton')


n = int(input(''))
s = str(input(''))
an = 'A'
de = 'D'
finalan = [each for each in s if each in an]
x = len(finalan)
finalde = [each for each in s if each in de]
y = len(finalde)
if x > y:
	print('Anton')
elif y > x:
	print('Danik')
else:
	print('Friendship')


num_of_games = input()
victories = input()
anton = victories.count('A')
danik = victories.count('D')
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
score = input()
ca = 0
cd = 0
for a in score:
	if a == 'A':
		ca = ca + 1
	elif a == 'D':
		cd = cd + 1
if ca > cd:
	print('Anton')
elif cd > ca:
	print('Danik')
else:
	print('Friendship')


def split(word):
	return [char for char in word]
n = int(input())
string = input()
a = split(string)
count = 0
for i in range(len(a)):
	if a[i] == 'A':
		count += 1
if count > n / 2:
	print('Anton')
elif count < n / 2:
	print('Danik')
else:
	print('Friendship')


import re
a = int(input())
inn = input()
anton = 0
danik = 0
for i in inn:
	x = re.search('[A]', i)
	if x:
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
else:
	print('Friendship')


import collections
n = int(input())
detail = input()
counts = collections.Counter(detail)
if counts['A'] > counts['D']:
	print('Anton')
elif counts['D'] > counts['A']:
	print('Danik')
else:
	print('Friendship')


n = input()
string = input()
countA = 0
countD = 0
for it in range(0, int(n)):
	if string[it] == 'A':
		countA += 1
	else:
		countD += 1
if countA > countD:
	print('Anton')
elif countD > countA:
	print('Danik')
else:
	print('Friendship')


bleh = int(input())
a = input()
if a.count('D') == a.count('A'):
	print('Friendship')
elif a.count('D') > a.count('A'):
	print('Danik')
elif a.count('D') < a.count('A'):
	print('Anton')


s = int(input())
s1 = input()
ac = 0
dc = 0
for i in range(len(s1)):
	if s1[i] == 'A':
		ac += 1
	if s1[i] == 'D':
		dc += 1
if ac > dc:
	print('Anton')
if dc > ac:
	print('Danik')
if ac == dc:
	print('Friendship')


n = int(input())
game = []
game = list(input())
(stA, stD) = (0, 0)
for i in game:
	if i == 'A':
		stA += 1
	else:
		stD += 1
if stA > stD:
	print('Anton')
elif stD > stA:
	print('Danik')
else:
	print('Friendship')


n = int(input())
c = sorted(input())
a = c.count('A')
b = c.count('D')
if a == b:
	print('Friendship')
else:
	print(['Anton', 'Danik'][a < b])


t = int(input())
s = input()
x = list(s)
if x.count('A') > x.count('D'):
	print('Anton')
elif x.count('A') < x.count('D'):
	print('Danik')
elif x.count('A') == x.count('D'):
	print('Friendship')


n = int(input())
s = input()
m = sum((a in 'A' for a in s))
print(['Friendship', 'Anton', 'Danik'][(m > n - m) - (m < n - m)])


input()
res = sum((1 if x == 'A' else -1 for x in input()))
print('Anton' if res > 0 else 'Danik' if res < 0 else 'Friendship')


input()
s = input()
a_c = 0
d_c = 0
for x in s:
	if x == 'A':
		a_c += 1
	else:
		d_c += 1
if a_c > d_c:
	print('Anton')
elif d_c > a_c:
	print('Danik')
else:
	print('Friendship')


n = int(input())
if n >= 1 and n <= 100000:
	S = str(input())
	if len(S) == n:
		a = S.count('A')
		b = S.count('D')
		if a > b:
			print('Anton')
		if a < b:
			print('Danik')
		if a == b:
			print('Friendship')


n = int(input())
b = input()
num = b.count('A')
if num > n - num:
	print('Anton')
elif num < n - num:
	print('Danik')
else:
	print('Friendship')


numero = input('')
games = input('')
A = 0
B = 0
for g in games:
	if g == 'A':
		A += 1
	elif g == 'D':
		B += 1

def func(A, B):
	if A > B:
		print('Anton')
		return 'Anton'
	elif A < B:
		print('Danik')
		return 'Danik'
	else:
		print('Friendship')
		return 'Friendship'
func(A, B)


from sys import stdin
i = [x.rstrip() for x in stdin.readlines()]
n = int(i[0])
a = i[1].count('A')
if a > n - a:
	print('Anton')
elif a < n - a:
	print('Danik')
else:
	print('Friendship')


n = input()
s = input()
(A, D) = (0, 0)
i = 0
while i < len(s):
	if s[i] == 'A':
		A += 1
	else:
		D += 1
	i += 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = str(input())
cntrA = 0
cntrD = 0
for i in s:
	if i == 'A':
		cntrA += 1
	else:
		cntrD += 1
if cntrA > cntrD:
	print('Anton')
elif cntrD > cntrA:
	print('Danik')
else:
	print('Friendship')


line = input()
line2 = input()
anton = 0
danik = 0
for i in line2:
	if i == 'A':
		anton += 1
		if anton > int(line) / 2:
			break
	else:
		danik += 1
		if danik > int(line) / 2:
			break
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
elif anton == danik:
	print('Friendship')


a = int(input())
s = input()
Anton_wins = 'A'
Danik_wins = 'D'
A = 0
D = 0
for i in s:
	if i == 'A':
		A = A + 1
	if i == 'D':
		D = D + 1
if A > D:
	print('Anton')
if A < D:
	print('Danik')
if A == D:
	print('Friendship')


n = int(input())
data = input()
a = data.count('A')
d = n - a
if a == d:
	print('Friendship')
else:
	print('Anton' if a > d else 'Danik')


num_games = int(input())
series = input()
anton = 0
danik = 0
if len(series) <= num_games:
	for i in series:
		if i == 'A':
			anton += 1
		elif i == 'D':
			danik += 1
	if anton > danik:
		print('Anton')
	elif danik > anton:
		print('Danik')
	else:
		print('Friendship')


inp = int(input())
s = input()
a = 0
d = 0
if inp == len(s):
	for i in range(inp):
		if s[i] == 'A':
			a += 1
		if s[i] == 'D':
			d += 1
	if a > d:
		print('Anton')
	if a < d:
		print('Danik')
	if a == d:
		print('Friendship')


no_of_games = input()
won = input()
d = {'A': 0, 'D': 0}
for winner in won:
	d[winner] += 1
if d['A'] == d['D']:
	print('Friendship')
elif d['A'] > d['D']:
	print('Anton')
else:
	print('Danik')


from sys import stdin, stdout
games = int(stdin.readline())
row = stdin.readline()
i = 0
Anton = 0
Danik = 0
while i < games:
	if row[i] == 'A':
		Anton += 1
	else:
		Danik += 1
	i += 1
if Anton > Danik:
	stdout.write('Anton\n')
elif Anton < Danik:
	stdout.write('Danik\n')
else:
	stdout.write('Friendship\n')


n = int(input())
s = input()
e = len(s)
if e == n:
	d = s.count('D')
	a = s.count('A')
	if d > a:
		print('Danik')
	elif d < a:
		print('Anton')
	else:
		print('Friendship')


a = input()
n = int(a)
game = input()
danik = 0
anton = 0
for x in range(0, n):
	if game[x] == 'D':
		danik = danik + 1
	else:
		anton = anton + 1
if danik == anton:
	print('Friendship')
elif danik > anton:
	print('Danik')
else:
	print('Anton')


def antonAndDanik(n, s):
	a = 0
	d = 0
	for i in range(n):
		if s[i] == 'A':
			a += 1
		else:
			d += 1
	if a > d:
		print('Anton')
	elif a < d:
		print('Danik')
	else:
		print('Friendship')
n = int(input())
s = list(input())
antonAndDanik(n, s)


n = int(input())
t = input()
cnt = 0
cnt1 = 0
for i in t:
	if i == 'A':
		cnt += 1
	elif i == 'D':
		cnt1 += 1
if cnt == cnt1:
	print('Friendship')
elif cnt > cnt1:
	print('Anton')
else:
	print('Danik')


a = int(input())
b = input().count('A') * 2
print([['Friendship', 'Anton'][b > a], 'Danik'][b < a])


n = int(input())
s = input().upper()
D = 0
A = 0
while n != 0:
	for ch in s:
		if ch == 'D':
			D += 1
			n -= 1
		elif ch == 'A':
			A += 1
			n -= 1
else:
	if A > D:
		print('Anton')
	elif D > A:
		print('Danik')
	else:
		print('Friendship')


nog = int(input(' '))
seq = input(' ')
win_seq = seq.upper()
a_win = win_seq.count('A')
d_win = win_seq.count('D')
while nog == len(win_seq):
	if a_win > d_win:
		print('Anton')
		break
	elif a_win < d_win:
		print('Danik')
		break
	else:
		print('Friendship')
		break


n = int(input())
l = str(input())
countA = 0
countD = 0
for i in range(n):
	if l[i] == 'A':
		countA += 1
	else:
		countD += 1
if countA > countD:
	print('Anton')
elif countD > countA:
	print('Danik')
else:
	print('Friendship')


n = int(input())
astr = input()
anton = 0
danik = 0
for x in range(n):
	if astr[x] == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
else:
	print('Friendship')


game_num = int(input())
the_winner = input()
Anton = 0
Danik = 0
for x in range(game_num):
	if the_winner[x] == 'A':
		Anton += 1
	elif the_winner[x] == 'D':
		Danik += 1
if Anton > Danik:
	print('Anton')
elif Anton == Danik:
	print('Friendship')
else:
	print('Danik')


p = input()
caido = input()
a = 0
b = 0
for i in range(0, len(caido)):
	if caido[i] == 'A':
		a = a + 1
	else:
		b = b + 1
if a > b:
	print('Anton')
elif b > a:
	print('Danik')
else:
	print('Friendship')


num_of_matches = int(input())
matches_won = input()
A_counter = 0
D_counter = 0
for char in matches_won:
	if char == 'A':
		A_counter += 1
	else:
		D_counter += 1
if A_counter > D_counter:
	print('Anton')
elif A_counter < D_counter:
	print('Danik')
else:
	print('Friendship')


n = int(input())
score = input()
counter1 = score.count('A')
counter2 = score.count('D')
if counter1 > counter2:
	print('Anton\n')
elif counter2 > counter1:
	print('Danik\n')
else:
	print('Friendship\n')


import sys
n = input()
s = input()
if s.count('A') > s.count('D'):
	print('Anton')
elif s.count('A') < s.count('D'):
	print('Danik')
else:
	print('Friendship')


import time
n = int(input())
s = input()
start = time.time()
a = 0
d = 0
for i in s:
	if i == 'A':
		a += 1
	else:
		d += 1
if a == d:
	print('Friendship')
elif a > d:
	print('Anton')
else:
	print('Danik')
finish = time.time()


number = int(input())
word = input()
a = word.count('A')
d = word.count('D')
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
danik = 0
for c in s:
	if c == 'D':
		danik += 1
if danik > n // 2:
	print('Danik')
elif n % 2 == 0 and danik == n // 2:
	print('Friendship')
else:
	print('Anton')


length = int(input())
word = input()
Danik = word.count('D')
Anton = word.count('A')
if Anton > Danik:
	print('Anton')
elif Danik > Anton:
	print('Danik')
else:
	print('Friendship')


def getWinner(results):
	anton = 0
	danik = 0
	for i in range(len(results)):
		if results[i] == 'A':
			anton += 1
		else:
			danik += 1
	if anton > danik:
		return 'Anton'
	elif danik > anton:
		return 'Danik'
	else:
		return 'Friendship'
n = int(input())
results = input()
print(getWinner(results))


n = int(input())
d = 0
a = input()
for i in range(n):
	if a[i] == 'D':
		d = d + 1
if d > n / 2:
	print('Danik')
elif d == n / 2:
	print('Friendship')
else:
	print('Anton')


a = int(input(''))
b = input('')
anton = 0
danik = 0
for letter in b:
	if letter == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


def game():
	t = 0
	d = 0
	n = int(input())
	a = list((str(i) for i in input()))[:n]
	for i in range(len(a)):
		if a[i] == 'A':
			t += 1
		elif a[i] == 'D':
			d += 1
	if t > d:
		print('Anton')
	elif d > t:
		print('Danik')
	elif t == d:
		print('Friendship')
g = game()


def even(n):
	c_a = 0
	c_b = 0
	x = input()
	for i in x:
		if i == 'A':
			c_a += 1
		else:
			c_b += 1
	if c_a > c_b:
		print('Anton')
	elif c_b > c_a:
		print('Danik')
	else:
		print('Friendship')
n = int(input())
even(n)


from collections import deque, Counter, OrderedDict
from heapq import nsmallest, nlargest
from math import ceil, floor, log, log2, sqrt

def binNumber(n, size=1):
	return bin(n)[2:].zfill(size)

def gcd(a, b):
	if a == 0:
		return b
	return gcd(b % a, a)

def iar():
	return list(map(int, input().split()))

def ini():
	return int(input())

def isp():
	return map(int, input().split())

def sti():
	return str(input())
n = ini()
s = sti()
(a, d) = (0, 0)
for i in s:
	if i == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
cpta = s.count('A')
cptd = s.count('D')
if cptd > cpta:
	print('Danik')
elif cptd < cpta:
	print('Anton')
else:
	print('Friendship')


t = int(input())
s = list(input())
c1 = s.count('A')
c2 = s.count('D')
if c1 > c2:
	print('Anton')
if c1 < c2:
	print('Danik')
if c1 == c2:
	print('Friendship')


n = input()
b = input()
print([['Danik', 'Friendship'][b.count('A') == b.count('D')], 'Anton'][b.count('A') > b.count('D')])


n = int(input())
s = input()
lst = list(s)
A = lst.count('A')
B = lst.count('D')
if A > B:
	print('Anton')
elif A < B:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
if s == s.lower():
	raise Exception('error')
countA = 0
countB = 0
for i in s:
	if i == 'A':
		countA += 1
	else:
		countB += 1
if countA > countB:
	print('Anton')
elif countB > countA:
	print('Danik')
else:
	print('Friendship')


import math
from collections import defaultdict
from collections import Counter
import itertools

def solve(n, s):
	a = 0
	b = 0
	for i in range(n):
		if s[i] == 'A':
			a += 1
		elif s[i] == 'D':
			b += 1
	if a > b:
		return 'Anton'
	elif a < b:
		return 'Danik'
	else:
		return 'Friendship'
n = int(input())
s = input()
print(solve(n, s))


N = input()
W = input()
A = W.count('A')
D = W.count('D')
if A == D:
	print('Friendship')
elif A > D:
	print('Anton')
else:
	print('Danik')


import math
n = int(input())
s = str(input())
awins = 0
for c in s:
	awins += 1 if c == 'A' else 0
if n == 1:
	print('Anton' if s == 'A' else 'Danik')
elif awins > math.ceil(n / 2.0):
	print('Anton')
elif awins == math.ceil(n / 2.0):
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = input()
string_a = 0
string_d = 0
for i in range(0, n):
	if s[i] == 'A':
		string_a += 1
	else:
		string_d += 1
if string_a > string_d:
	print('Anton')
if string_a < string_d:
	print('Danik')
if string_d == string_a:
	print('Friendship')


games = int(input())
seq = list(input())
Ds = seq.count('D')
As = seq.count('A')
if As > Ds:
	print('Anton')
elif Ds > As:
	print('Danik')
else:
	print('Friendship')


no = int(input())
str1 = input()
a = str1.count('A')
d = str1.count('D')
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


a = int(input())
b = input().lower()
if a == b.__len__():
	c = b.count('d')
	d = b.count('a')
if c > d:
	print('Danik')
if d > c:
	print('Anton')
if c == d:
	print('Friendship')


n = int(input())
win = []
win = input()
dict = {'A': 'Anton', 'D': 'Danik', 'F': 'Friendship'}
A_count = 0
D_count = 0
for item in win:
	if item == 'A':
		A_count += 1
	else:
		D_count += 1
if A_count > D_count:
	print(dict['A'])
elif A_count < D_count:
	print(dict['D'])
else:
	print(dict['F'])


a = input()
b = input()
table1 = []
for i in range(len(b)):
	table1.append(b[i])
licznika = 0
licznikb = 0
for i in range(len(table1)):
	if table1[i] == 'A':
		licznika = licznika + 1
	if table1[i] == 'D':
		licznikb = licznikb + 1
if licznika > licznikb:
	print('Anton')
if licznika < licznikb:
	print('Danik')
if licznika == licznikb:
	print('Friendship')


n = int(input())
status = input()
A_Count = status.count('A')
D_Count = n - A_Count
if A_Count > D_Count:
	print('Anton')
elif A_Count < D_Count:
	print('Danik')
else:
	print('Friendship')


(a, d) = (0, 0)
length = input()
string = input()
for letter in string:
	if letter == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


f = int(input())
games = str(input())
anton = 0
danik = 0
for game in games:
	if game == 'A':
		anton += 1
	elif game == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


def game_result(count):
	A_D = list(input().upper())
	A = 0
	D = 0
	for COMPARE in A_D:
		if COMPARE == 'A':
			A += 1
		elif COMPARE == 'D':
			D += 1
	if A > D:
		print('Anton')
	elif A < D:
		print('Danik')
	elif A == D:
		print('Friendship')
game_start = input()
game_result(int(game_start))


def main():
	n = int(input())
	s = input()
	ca = s.count('A')
	cd = s.count('D')
	if cd < ca:
		print('Anton')
	elif ca < cd:
		print('Danik')
	else:
		print('Friendship')
main()


a = int(input())
b = input()
cha = 0
chd = 0
for i in range(len(b)):
	if b[i] == 'A':
		cha += 1
	elif b[i] == 'D':
		chd += 1
if cha > chd:
	print('Anton')
elif chd > cha:
	print('Danik')
elif cha == chd:
	print('Friendship')


n = int(input())
inp = input()
anton_win = inp.count('A')
danik_win = inp.count('D')
if anton_win > danik_win:
	print('Anton')
elif anton_win == danik_win:
	print('Friendship')
else:
	print('Danik')


y = input()
x = input()
(c, b) = (0, 0)
for i in x:
	if i == 'A':
		c += 1
	else:
		b += 1
print('Anton' if c > b else 'Friendship' if c == b else 'Danik')


n = int(input())
str = input()
print('Anton' if sum([1 for c in str if c == 'A']) > sum([1 for c in str if c == 'D']) else 'Danik' if sum([1 for c in str if c == 'A']) < sum([1 for c in str if c == 'D']) else 'Friendship')


a = int(input())
s = str(input())
D = s.count('D')
A = s.count('A')
if A == D:
	print('Friendship')
elif max(A, D) == A:
	print('Anton')
elif max(A, D) == D:
	print('Danik')


n = int(input())
m = input()
p = 0
q = 0
for i in range(n):
	if m[i] == 'A':
		p += 1
	elif m[i] == 'D':
		q += 1
if p > q:
	print('Anton')
elif p < q:
	print('Danik')
else:
	print('Friendship')


import sys
lines = sys.stdin.readlines()
N = int(lines[0].strip())
string = lines[1].strip()
aWin = string.count('A')
if aWin * 2 > N:
	print('Anton')
elif aWin * 2 == N:
	print('Friendship')
else:
	print('Danik')


n = int(input())
S = input()
k = 0
for i in S:
	if i == 'A':
		k += 1
if k == n - k:
	print('Friendship')
if k > n - k:
	print('Anton')
if k < n - k:
	print('Danik')


K = int(input())
L = list(input())
print('Anton' if L.count('A') > L.count('D') else 'Danik' if L.count('A') < L.count('D') else 'Friendship')


n = int(input())
r = input()
c = 0
for el in r:
	if el == 'A':
		c += 1
	else:
		c -= 1
if c == 0:
	print('Friendship')
elif c > 0:
	print('Anton')
else:
	print('Danik')


n = int(input())
matches = input()
anton = matches.count('A')
mid = n / 2
if anton > mid:
	print('Anton')
elif anton == mid:
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = str(input())
a_cnt = 0
d_cnt = 0
for char in s:
	if char == 'A':
		a_cnt += 1
	else:
		d_cnt += 1
if a_cnt > d_cnt:
	print('Anton')
elif a_cnt == d_cnt:
	print('Friendship')
else:
	print('Danik')


import sys

def main():
	games = int(sys.stdin.readline().strip())
	winner = sys.stdin.readline().strip()
	anton = 0
	danik = 0
	for c in winner:
		if c == 'A':
			anton += 1
		else:
			danik += 1
	if anton == danik:
		print('Friendship')
	elif anton > danik:
		print('Anton')
	else:
		print('Danik')
main()


n = int(input())
s = input()
(a, d) = (0, 0)
ar = []
for i in s:
	ar.append(i)
for k in range(0, n):
	if ar[k] == 'A':
		a = a + 1
	if ar[k] == 'D':
		d = d + 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = str(input())
ant = 0
dan = 0
i = 0
while i < n:
	if a[i] == 'A':
		ant += 1
	else:
		dan += 1
	i += 1
if ant > dan:
	print('Anton')
elif dan > ant:
	print('Danik')
else:
	print('Friendship')


numberofGames = int(input())
string = input()
countAnton = string.count('A')
countDanik = string.count('D')
if countAnton > countDanik:
	print('Anton')
elif countDanik > countAnton:
	print('Danik')
else:
	print('Friendship')


import sys
input()
games = str(input())
counter = 0
for game in games:
	if game == 'A':
		counter += 1
	else:
		counter -= 1
if counter == 0:
	print('Friendship')
elif counter > 0:
	print('Anton')
else:
	print('Danik')


g = int(input())
s = input()
anton = s.count('A')
danik = s.count('D')
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
ant = s.count('A')
dan = s.count('D')
if ant > dan:
	print('Anton')
if ant < dan:
	print('Danik')
elif ant == dan:
	print('Friendship')


n = int(input())
row = input()
antons = row.count('A')
daniks = row.count('D')
if antons > daniks:
	print('Anton')
elif antons < daniks:
	print('Danik')
else:
	print('Friendship')


def main():
	from sys import stdin, stdout
	n = int(stdin.readline())
	s = stdin.readline().strip()
	dcount = s.count('D')
	acount = s.count('A')
	if dcount > acount:
		stdout.write('Danik')
	elif dcount < acount:
		stdout.write('Anton')
	else:
		stdout.write('Friendship')
main()


import sys
input()
s = input()
a = 0
d = 0
for i in s:
	if i == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


A = 0
D = 0
the_input = int(input())
winner = input()
for i in winner:
	if i == 'A':
		A = A + 1
	elif i == 'D':
		D = D + 1
	else:
		continue
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
s1 = s.count('A')
s2 = s.count('D')
if s1 > s2:
	print('Anton')
elif s1 < s2:
	print('Danik')
else:
	print('Friendship')


from sys import stdin, stdout
n = int(stdin.readline())
s = str(stdin.readline())
a = s.count('A')
d = n - a
if a > d:
	stdout.write(str('Anton'))
elif a < d:
	stdout.write(str('Danik'))
else:
	stdout.write(str('Friendship'))


t = int(input())
s = input()
count = s.count('A')
if count > t / 2:
	print('Anton')
elif count == t / 2:
	print('Friendship')
else:
	print('Danik')


x = int(input())
y = input()
c = 0
d = 0
for i in range(len(y)):
	if y[i] == 'A':
		c = c + 1
	else:
		d = d + 1
if c > d:
	print('Anton')
elif c < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
data = input()
anton = [1 if i == 'A' else 0 for i in data]
danik = [1 if i == 'D' else 0 for i in data]
if sum(anton) > sum(danik):
	print('Anton')
elif sum(anton) < sum(danik):
	print('Danik')
else:
	print('Friendship')


inp = int(input())
stinp = str.upper(input())
anton = []
darik = []
if inp not in range(1, 100001):
	print('Range is between 1 and 100000')
elif inp == len(stinp):
	for i in stinp:
		if i == 'A':
			anton.append('A')
		else:
			darik.append('D')
	if len(anton) > len(darik):
		print('Anton')
	elif len(anton) < len(darik):
		print('Danik')
	else:
		print('Friendship')
else:
	print('Number of games played not equals to outcome of each match.')


n = int(input())
words = input()
anton_count = words.count('A')
danik_count = words.count('D')
if anton_count > danik_count:
	print('Anton')
elif danik_count > anton_count:
	print('Danik')
else:
	print('Friendship')


import sys

def get_ints():
	return map(int, sys.stdin.readline().strip().split())

def whoWon(n, gw):
	aw = 0
	dw = 0
	w = 'Anton'
	for g in gw:
		if g == 'A':
			aw += 1
		elif g == 'D':
			dw += 1
	if aw < dw:
		w = 'Danik'
	elif aw == dw:
		w = 'Friendship'
	return w
n = input()
gw = input()
print(whoWon(n, gw))


n = input()
b = input()
if sum((i == 'A' for i in b)) > sum((i == 'D' for i in b)):
	print('Anton')
elif sum((i == 'D' for i in b)) > sum((i == 'A' for i in b)):
	print('Danik')
else:
	print('Friendship')


n = input()
string = list(map(str, input().rstrip()))
Acount = string.count('A')
Dcount = string.count('D')
if Acount == Dcount:
	print('Friendship')
elif Acount > Dcount:
	print('Anton')
else:
	print('Danik')


n = int(input())
a = input()
a = list(a)
c1 = a.count('A')
c2 = a.count('D')
if c1 < c2:
	print('Danik')
elif c1 == c2:
	print('Friendship')
else:
	print('Anton')


n = int(input())
s = input().strip()
a = s.count('A')
d = n - a
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


a = int(input())
b = input()
h = []
s = []
for i in b:
	if i == 'A':
		h.append(i)
	elif i == 'D':
		s.append(i)
if len(h) > len(s):
	print('Anton')
elif len(h) < len(s):
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
a = 0
d = 0
for i in s:
	if i == 'A':
		a += 1
	else:
		d += 1
	if max(a, d) > int(n / 2):
		break
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


def solve(n, s):
	string = sorted(s)
	s = ''.join(string)
	index = s.find('D')
	if index > n / 2 or index < 0:
		return 'Anton'
	elif index == n / 2:
		return 'Friendship'
	else:
		return 'Danik'
n = int(input())
string = input()
print(solve(n, string))


n = int(input())
b = len(input().replace('A', ''))
if n > 2 * b:
	print('Anton')
elif n < 2 * b:
	print('Danik')
else:
	print('Friendship')


times = int(input())
wins = str(input())
wA = wins.count('A')
wD = wins.count('D')
if wA != wD:
	if wA > wD:
		print('Anton')
	else:
		print('Danik')
else:
	print('Friendship')


from collections import Counter
input()
result = Counter(input())
anton = result.get('A', 0)
danik = result.get('D', 0)
print('Anton' if anton > danik else 'Danik' if danik > anton else 'Friendship')


n = int(input())
s = input()
a_wins = 0
s_wins = 0
for i in s:
	if i == 'A':
		a_wins += 1
		if a_wins > n // 2:
			print('Anton')
			break
	else:
		s_wins += 1
		if s_wins > n // 2:
			print('Danik')
			break
if a_wins == s_wins:
	print('Friendship')


x = int(input())
if x == 0:
	exit()
s = input()
a = 0
d = 0
c = 0
while c < x:
	if s[c] == 'A':
		a += 1
	elif s[c] == 'D':
		d += 1
	c += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


numberOfGames: int = int(input())
stringGames = input()
antonGames = 0
danikGames = 0
for i in stringGames:
	if i == 'A':
		antonGames += 1
	else:
		danikGames += 1
if antonGames == danikGames:
	print('Friendship')
else:
	print('Anton') if antonGames > danikGames else print('Danik')


n = int(input())
k = str(input())
p = q = t = 0
for i in k:
	if i == 'A':
		p = p + 1
	elif i == 'D':
		q = q + 1
	else:
		t = t + 1
if len(k) == n and t == 0:
	if p > q:
		print('Anton')
	elif p < q:
		print('Danik')
	else:
		print('Friendship')


def main():
	import sys
	N = int(sys.stdin.readline())
	S = sys.stdin.readline().strip()
	antons_wins = sum((1 if c == 'A' else 0 for c in S))
	daniks_wins = N - antons_wins
	if antons_wins == daniks_wins:
		print('Friendship')
	elif antons_wins > daniks_wins:
		print('Anton')
	else:
		print('Danik')
main()


a = int(input())
b = input()
NA = 0
ND = 0
for i in range(a):
	if b[i] == 'A':
		NA = NA + 1
	if b[i] == 'D':
		ND = ND + 1
if NA < ND:
	print('Danik')
elif NA > ND:
	print('Anton')
else:
	print('Friendship')


x = int(input())
y = input()
l = 0
s = 0
for i in range(x):
	if y[i] == 'A':
		l = l + 1
	elif y[i] == 'D':
		s = s + 1
if s > l:
	print('Danik')
elif l > s:
	print('Anton')
elif s == l:
	print('Friendship')


input()
result = input()
print((('Anton', 'Friendship')[result.count('D') == result.count('A')], 'Danik')[result.count('D') > result.count('A')])


while True:
	n = int(input())
	if n >= 1 and n <= 10 ** 5:
		break
while True:
	s = input('')
	if len(s) == n and ('A' in s or 'D' in s):
		break
s = s.upper()
number_A = number_D = 0
for i in range(len(s)):
	if s[i] == 'A':
		number_A += 1
	else:
		number_D += 1
if number_A > number_D:
	print('Anton')
elif number_D > number_A:
	print('Danik')
else:
	print('Friendship')


limit = int(input())
raw_sequence = input()
sequence = raw_sequence[0:limit]
anton_count = sequence.count('A')
danik_count = sequence.count('D')
if anton_count == danik_count:
	print('Friendship')
elif anton_count > danik_count:
	print('Anton')
else:
	print('Danik')


t = int(input())
s = input()
(ca, cd, i) = (0, 0, 0)
while i < t:
	if s[i] == 'A':
		ca = ca + 1
	elif s[i] == 'D':
		cd = cd + 1
	i = i + 1
if ca > cd:
	print('Anton')
elif ca < cd:
	print('Danik')
else:
	print('Friendship')


n = int(input())
g = input()
a = sum(map(lambda x: x == 'A', g))
d = n - a
if a == d:
	print('Friendship')
elif a > d:
	print('Anton')
else:
	print('Danik')


r = int(input())
result = input()
countA = 0
countD = 0
for letter in result:
	if letter == 'A':
		countA = countA + 1
	elif letter == 'D':
		countD = countD + 1
if countA > countD:
	print('Anton')
elif countA < countD:
	print('Danik')
elif countA == countD:
	print('Friendship')


n = int(input())
ch = input()
i = 0
d = 0
a = 0
while i < n:
	if ch[i] == 'A':
		a = a + 1
	else:
		d = d + 1
	if a > n // 2 + 1 or d > n // 2 + 1:
		break
	i = i + 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


number_games = input()
games = input()
count = 0
for i in range(int(number_games)):
	if games[i] == 'D':
		count += 1
	else:
		count -= 1
if count > 0:
	print('Danik')
elif count < 0:
	print('Anton')
else:
	print('Friendship')


n = int(input())
z = input()
a = 0
d = 0
for i in z:
	if i is 'A':
		a += 1
	elif i is 'D':
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


games = int(input())
outcome = list(input())
anton = 0
danik = 0
for item in outcome:
	if item == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
else:
	print('Friendship')


round = int(input())
score = input()
a = score.count('A')
d = score.count('D')
if a > d:
	print('Anton')
elif a == d:
	print('Friendship')
else:
	print('Danik')


from sys import stdin, stdout

def sin():
	return stdin.readline().rstrip()

def listInput():
	return list(map(int, sin().split()))

def printBS(li):
	if not li:
		return
	for i in range(len(li) - 1):
		stdout.write('%d ' % li[i])
	stdout.write('%d\n' % li[-1])
n = int(sin())
s = sin()
(ac, dc) = (0, 0)
for i in s:
	if i == 'A':
		ac += 1
	else:
		dc += 1
if ac > dc:
	print('Anton')
elif ac < dc:
	print('Danik')
else:
	print('Friendship')


number = int(input())
number_1 = input()
count = 0
count_1 = 0
for x in number_1:
	if x == 'A':
		count += 1
	else:
		count_1 += 1
if count > count_1:
	print('Anton')
elif count < count_1:
	print('Danik')
else:
	print('Friendship')


n = int(input())
data = input()
CA = 0
CD = 0
for i in data:
	if i == 'A':
		CA = CA + 1
	elif i == 'D':
		CD = CD + 1
if CA > CD:
	print('Anton')
elif CA < CD:
	print('Danik')
elif CA == CD:
	print('Friendship')


from sys import stdin
n = input()
a = stdin.readline().strip()
Anton = a.count('A')
Danik = a.count('D')
if Anton > Danik:
	print('Anton')
elif Danik > Anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
countA = 0
countD = 0
for e in s:
	if e == 'A':
		countA += 1
	else:
		countD += 1
if countA > countD:
	print('Anton')
elif countA < countD:
	print('Danik')
else:
	print('Friendship')


a = input()
b = input()
danikcount = 0
antoncount = 0
for i in b:
	if i == 'D':
		danikcount += 1
	else:
		antoncount += 1
if antoncount == danikcount:
	print('Friendship')
elif antoncount < danikcount:
	print('Danik')
else:
	print('Anton')


d = input()
n = int(d)
a = input()
b = []
c = []
for i in a:
	if i == 'D':
		c.append(i)
	else:
		b.append(i)
e = len(b)
f = len(c)
if e < f:
	print('Danik')
elif e > f:
	print('Anton')
else:
	print('Friendship')


def fri(n, s):
	anton = danik = 0
	for i in range(0, n):
		if s[i] == 'D':
			danik += 1
		else:
			anton += 1
	return 'Anton' if anton > danik else 'Danik' if anton < danik else 'Friendship'
n = int(input())
s = input()
print(fri(n, s))


n = int(input())
s = input()
anton = danik = 0
for res in s:
	if res == 'D':
		danik += 1
	else:
		anton += 1
if anton == danik:
	print('Friendship')
else:
	print('Danik' if danik > anton else 'Anton')


def count(s):
	c = 0
	for i in s:
		if i == 'A':
			c = c + 1
	return c
n = int(input(''))
s = input('')
a = count(s)
d = n - a
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = list(input())
count_a = 0
count_d = 0
for i in range(n):
	if s[i] == 'D':
		count_d += 1
	else:
		count_a += 1
if count_a == count_d:
	print('Friendship')
elif count_a > count_d:
	print('Anton')
else:
	print('Danik')


num = int(input()) / 2
game = str(input())
sub = 'A'
a = game.count(sub)
if a > num:
	print('Anton')
elif a == num:
	print('Friendship')
else:
	print('Danik')


import sys
from random import choice, randint
sys.setrecursionlimit(10 ** 7)
inf = 10 ** 20
eps = 1.0 / 10 ** 10
mod = 10 ** 9 + 7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]

def MI():
	return map(int, sys.stdin.readline().strip().split())

def LI():
	return list(map(int, sys.stdin.readline().strip().split()))

def LLI():
	return [list(map(int, l.split())) for l in sys.stdin.readlines().strip()]

def LI_():
	return [int(x) - 1 for x in sys.stdin.readline().strip().split()]

def LF():
	return [float(x) for x in sys.stdin.readline().strip().split()]

def LS():
	return sys.stdin.readline().strip().split()

def I():
	return int(sys.stdin.readline().strip())

def F():
	return float(sys.stdin.readline().strip())

def S():
	return sys.stdin.readline().strip()

def pf(s):
	return print(s, flush=True)

def pe(s):
	return print(str(s), file=sys.stderr)

def JA(a, sep):
	return sep.join(map(str, a))

def JAA(a, s, t):
	return s.join((t.join(map(str, b)) for b in a))
inp = sys.stdin.readline
out = sys.stdout.write

def main():
	n = I()
	s = S()
	if s.count('A') > s.count('D'):
		pf('Anton')
	elif s.count('A') < s.count('D'):
		pf('Danik')
	else:
		pf('Friendship')
main()


input()
x = input().lower()
d = x.count('d')
a = x.count('a')
if a == d:
	print('Friendship')
elif a < d:
	print('Danik')
else:
	print('Anton')


n = input()
s = input()
result = 0
for c in s:
	if c == 'A':
		result += 1
	elif c == 'D':
		result -= 1
if result == 0:
	print('Friendship')
elif result > 0:
	print('Anton')
else:
	print('Danik')


n = int(input())
s = input()
ans = sum((s[i] == 'D' for i in range(n)))
if ans > n / 2:
	print('Danik')
elif ans < n / 2:
	print('Anton')
else:
	print('Friendship')


a = int(input())
b = input()
anton = b.count('A')
danik = b.count('D')
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
else:
	print('Friendship')


import sys
input = sys.stdin.readline

def inp():
	return input()

def inlt():
	return list(map(int, input().split()))

def insr():
	s = input()
	return list(s[:len(s) - 1])

def invr():
	return map(int, input().split())
x = invr()
a = 0
d = 0
y = inp()
for i in y:
	if i == 'A':
		a += 1
	else:
		d += 1
d = d - 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


def get_values():
	num = int(input())
	games = input().upper()
	A = 0
	D = 0
	for i in games:
		if i == 'A':
			A += 1
		else:
			D += 1
	if A > D:
		return print('Anton')
	elif D > A:
		return print('Danik')
	else:
		return print('Friendship')
get_values()


n = int(input())
ar = [str(i) for i in input()]
f = ar.count('A')
if f > n - f:
	print('Anton')
elif f == n - f:
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = input()
Ac = s.count('A')
Dc = s.count('D')
print('Anton') if Ac > Dc else print('Friendship') if Ac == Dc else print('Danik')


def solve():
	a = s.count('A')
	d = len(s) - a
	if a > d:
		return 'Anton'
	elif a < d:
		return 'Danik'
	else:
		return 'Friendship'
n = int(input().strip())
s = input().strip()
print(solve())


Games = int(input())
string = input()
count = 0
counter = 0
for i in string:
	if i == 'A':
		count = count + 1
	else:
		counter = counter + 1
if count > counter:
	print('Anton')
elif counter > count:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
s1 = []
for i in range(len(s)):
	s1.append(s[i])
n1 = s1.count('A')
n2 = s1.count('D')
if n1 > n2:
	print('Anton')
elif n2 > n1:
	print('Danik')
else:
	print('Friendship')


x = input()
y = input()
count1 = 0
count2 = 0
for i in y:
	if i == 'A':
		count1 = count1 + 1
	if i == 'D':
		count2 = count2 + 1
if count1 > count2:
	print('Anton')
elif count2 > count1:
	print('Danik')
else:
	print('Friendship')


a = 0
d = 0
x = int(input())
z = input()
for i in range(x):
	if z[i] == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


a = input()
b = input()
countA = 0
for i in range(int(a)):
	if b[i] == 'A':
		countA = countA + 1
if 2 * countA > int(a):
	print('Anton')
if 2 * countA == int(a):
	print('Friendship')
if 2 * countA < int(a):
	print('Danik')


x = int(input())
z = input()
A = 0
D = 0
for p in z:
	if p == 'A':
		A = A + 1
	else:
		D = D + 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


x = int(input())
s = str(input())
c_a = c_d = 0
for l in s:
	if 'A' is l:
		c_a += 1
	elif 'D' is l:
		c_d += 1
if c_a > c_d:
	print('Anton')
elif c_a < c_d:
	print('Danik')
else:
	print('Friendship')


import sys
import math
import bisect

def main():
	na = 0
	nd = 0
	n = int(input())
	for c in input():
		if c == 'A':
			na += 1
		elif c == 'D':
			nd += 1
	if na > nd:
		print('Anton')
	elif na < nd:
		print('Danik')
	else:
		print('Friendship')
main()


def a(n, b):
	if b.count('A') > b.count('D'):
		return 'Anton'
	elif b.count('A') < b.count('D'):
		return 'Danik'
	return 'Friendship'
n = input()
b = input()
print(a(n, b))


import string
n = int(input())
s = str(input())
count = s.count('A')
if count == n - count:
	print('Friendship')
elif count > n - count:
	print('Anton')
else:
	print('Danik')


n = int(input())
scores = list(input())
antonScore = 0
danikScore = 0
for s in scores:
	if s == 'A':
		antonScore += 1
	else:
		danikScore += 1
if antonScore > danikScore:
	print('Anton')
elif danikScore > antonScore:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
ad = {'A': 0, 'D': 0}
i = 0
while ad['A'] <= n / 2 and ad['D'] <= n / 2 and (i < n):
	ad[s[i]] += 1
	i += 1
if ad['A'] > ad['D']:
	print('Anton')
elif ad['D'] > ad['A']:
	print('Danik')
else:
	print('Friendship')


n = input()
g = input().strip()
print((('Danik', 'Friendship')[g.count('A') == g.count('D')], 'Anton')[g.count('A') > g.count('D')])


amount = int(input())
A_D = str(input())
if A_D.count('A') > A_D.count('D'):
	print('Anton')
elif A_D.count('A') < A_D.count('D'):
	print('Danik')
else:
	print('Friendship')


num = int(input())
string = list(input())
i = 0
count1 = 0
count2 = 0
j = 0
while j < len(string):
	for alpha in string[i]:
		if alpha == 'A':
			count1 += 1
		else:
			count2 += 1
		i += 1
	j += 1
if count1 == count2:
	print('Friendship')
elif count1 > count2:
	print('Anton')
else:
	print('Danik')


def main():
	a = int(input())
	An = 0
	Da = 0
	list_alpha = input()
	for i in range(a):
		if list_alpha[i] == 'A':
			An += 1
		else:
			Da += 1
	if An > Da:
		print('Anton')
	elif Da > An:
		print('Danik')
	else:
		print('Friendship')
main()


n = int(input())
x = input()
i = 0
a = 0
d = 0
while i < n:
	if x[i] == 'A':
		a += 1
	elif x[i] == 'D':
		d += 1
	i += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


TN = 1

def solution():
	n = int(input())
	s = list(input())
	ans = 'Friendship'
	ant = 0
	dan = 0
	for i in range(n):
		if s[i] == 'A':
			ant += 1
		else:
			dan += 1
	if ant > dan:
		ans = 'Anton'
	elif dan > ant:
		ans = 'Danik'
	print(ans)
while TN != 0:
	solution()
	TN -= 1


n = input()
(a, b) = (0, 0)
s = input()
for i in s:
	if i == 'A':
		a += 1
	else:
		b += 1
print('Anton' if a > b else 'Danik' if a < b else 'Friendship')


n = int(input())
l = str(input())
num = 0
for i in range(0, n):
	if l[i] == 'A':
		num += 1
if num > n / 2:
	print('Anton')
elif num == n / 2:
	print('Friendship')
else:
	print('Danik')


games = int(input())
result = input()
A = 0
D = 0
for i in range(games):
	if result[i] == 'A':
		A += 1
	elif result[i] == 'D':
		D += 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


match_count = int(input())
matches_string = list(input())
if matches_string.count('A') > matches_string.count('D'):
	print('Anton')
elif matches_string.count('A') < matches_string.count('D'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
l = input().upper()
a = l.count('A')
b = l.count('D')
if a > b:
	print('Anton')
elif b > a:
	print('Danik')
else:
	print('Friendship')


T = int(input())
test = input()
A = test.count('A')
if A > T - A:
	print('Anton')
elif A == T - A:
	print('Friendship')
else:
	print('Danik')


n = int(input())
outcomes = input().strip()
net = 0
for j in outcomes:
	if j == 'A':
		net += 1
	else:
		net -= 1
if net > 0:
	print('Anton')
elif net == 0:
	print('Friendship')
else:
	print('Danik')


import math
import os
import random
import re
import sys
s = int(input())
t = input()
a = t.count('A')
d = t.count('D')
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


partidas = int(input())
victorias = input()
anton = 0
danik = 0
n = 0
for n in range(partidas):
	if victorias[n] == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
elif danik == anton:
	print('Friendship')


games_nr = int(input())
results = input()
(anton, danik) = (0, 0)
for result in results:
	if result == 'A':
		anton += 1
	elif result == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
m = input()
t1 = ['Anton']
t2 = ['Danik']
t3 = ['Friendship']
if m.count('A') > m.count('D'):
	for arip in t1:
		print(arip, end='')
elif m.count('A') < m.count('D'):
	for arip in t2:
		print(arip, end='')
else:
	for arip in t3:
		print(arip, end='')


n = int(input())
inp = input()
c = 0
for char in inp:
	if char == 'A':
		c += 1
if 2 * c < n:
	print('Danik')
elif 2 * c == n:
	print('Friendship')
else:
	print('Anton')


y = int(input())
z = input()
x = str(z)
a = x.count('A')
d = x.count('D')
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


k = int(input())
s = input()
l = list(s)
if l.count('A') > l.count('D'):
	print('Anton')
elif l.count('A') < l.count('D'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
res = input()
a = 0
d = 0
for part in res:
	if part == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


games = int(input())
st = input()
ant = 0
dan = 0
for i in range(games):
	if st[i] == 'D':
		dan += 1
	else:
		ant += 1
if ant < dan:
	print('Danik')
elif ant > dan:
	print('Anton')
else:
	print('Friendship')


from sys import stdin
_ = stdin.readline()
outcome = sum([1 if ch == 'A' else -1 for ch in stdin.readline().strip()])
if outcome > 0:
	print('Anton')
elif outcome < 0:
	print('Danik')
else:
	print('Friendship')


def main():
	n = input()
	vals = input()
	len_a = len([v for v in vals if v == 'A'])
	print('Anton' if len_a > len(vals) - len_a else 'Danik' if len(vals) - len_a > len_a else 'Friendship')
main()


AN = 0
DA = 0
n = input()
s = input()
for e in s:
	if e == 'A':
		AN = AN + 1
	else:
		DA = DA + 1
if AN > DA:
	print('Anton')
if DA > AN:
	print('Danik')
if AN == DA:
	print('Friendship')


n = int(input())
s = input()
a = list()
b = list()
for i in s:
	if i == 'A':
		a.append(i)
	if i == 'D':
		b.append(i)
if len(a) > len(b):
	print('Anton')
if len(b) > len(a):
	print('Danik')
if len(b) == len(a):
	print('Friendship')


size = int(input())
line = input()
totA = line.count('A')
totD = line.count('D')
if totA > totD:
	print('Anton')
elif totA < totD:
	print('Danik')
else:
	print('Friendship')


k = int(input())
n = input()
k = 0
l = 0
for i in n:
	if i == 'A':
		k += 1
	else:
		l += 1
if k > l:
	r = 'Anton'
elif l > k:
	r = 'Danik'
else:
	r = 'Friendship'
print(r)


input()
s = input()
s1 = s.upper()
if s1.count('A') > s1.count('D'):
	print('Anton')
elif s1.count('A') == s1.count('D'):
	print('Friendship')
else:
	print('Danik')


num = int(input())
list1 = [num]
list1 = list(input())
count1 = list1.count('A')
count2 = list1.count('D')
if count1 > count2:
	print('Anton')
elif count1 < count2:
	print('Danik')
else:
	print('Friendship')


n = []
while True:
	try:
		line = input()
	except EOFError:
		break
	n.append(line)
del n[0]
games = n[0]
A = 0
D = 0
for x in games:
	if x == 'A':
		A += 1
	if x == 'D':
		D += 1
if A > D:
	print('Anton')
elif A == D:
	print('Friendship')
else:
	print('Danik')


input()
string = input()
A = 0
D = 0
for ch in string:
	if ch == 'A':
		A += 1
	if ch == 'D':
		D += 1
if A > D:
	print('Anton')
elif A < D:
	print('Danik')
else:
	print('Friendship')


games = int(input())
record = input()
Aton = record.count('A')
if games - Aton > Aton:
	print('Danik')
elif games - Aton < Aton:
	print('Anton')
else:
	print('Friendship')


l = 0
v = 0
n = int(input())
s = str(input())
for i in s:
	if i == 'D':
		l += 1
	if i == 'A':
		v += 1
if l > v:
	print('Danik')
elif l < v:
	print('Anton')
else:
	print('Friendship')


x = int(input())
y = input()
z = 0
s = []
for e in range(x):
	s.append(y[z])
	z = z + 1
dd = dict()
for i in s:
	dd[i] = dd.get(i, 0) + 1
try:
	if dd['A'] > dd['D']:
		print('Anton')
	elif dd['A'] < dd['D']:
		print('Danik')
	elif dd['A'] == dd['D']:
		print('Friendship')
except:
	if 'A' not in s:
		print('Danik')
	if 'D' not in s:
		print('Anton')


__author__ = 'artyom'

def main():
	n = read()
	a = read(0).count('A')
	if a == n // 2 and n & 1 == 0:
		return 'Friendship'
	return 'Anton' if a > n // 2 else 'Danik'

def read(mode=1, size=None):
	if mode == 0:
		return input().strip()
	if mode == 1:
		return int(input().strip())
	if mode == 2:
		return input().strip().split()
	if mode == 3:
		return list(map(int, input().strip().split()))
	a = []
	for _ in range(size):
		a.append(read(3))
	return a

def write(s='\n'):
	if s is None:
		s = ''
	if isinstance(s, tuple) or isinstance(s, list):
		s = ' '.join(map(str, s))
	s = str(s)
	print(s, end='\n')
res = main()
write(res)


import operator
count = int(input())
streak = str(input()).upper()
A = 0
D = 0
while len(streak) == count:
	for c in streak:
		if c == 'A':
			A = A + 1
		elif c == 'D':
			D = D + 1
	while A < D:
		print('Danik')
		break
	while D < A:
		print('Anton')
		break
	if A == D:
		print('Friendship')
	break


def AntonAndDanik():
	n = int(input())
	s = input()
	if s.count('A') > s.count('D'):
		print('Anton')
	elif s.count('A') < s.count('D'):
		print('Danik')
	else:
		print('Friendship')

def main():
	AntonAndDanik()
main()


noOfGames = input()
gameWinnersList = input()
antonWins = 0
danikWins = 0
for ele in gameWinnersList:
	if ele == 'A':
		antonWins += 1
	elif ele == 'D':
		danikWins += 1
if antonWins > danikWins:
	print('Anton')
elif danikWins > antonWins:
	print('Danik')
else:
	print('Friendship')


n = int(input())
line = input()
Anton = 0
Danik = 0
for x in line:
	if x == 'A':
		Anton = Anton + 1
	else:
		Danik = Danik + 1
if Anton == Danik:
	print('Friendship')
elif Anton > Danik:
	print('Anton')
else:
	print('Danik')


a = 'Anton'
d = 'Danik'
f = 'Friendship'
n = int(input())
s = input()
b = 0
c = 0
for g in range(n):
	if s[g] == 'A':
		b += 1
for g in range(n):
	if s[g] == 'D':
		c += 1
if b > c:
	print(a)
elif c > b:
	print(d)
else:
	print(f)


x = input('')
y = input('')
countA = 0
countD = 0
for i in y:
	if i == 'A':
		countA += 1
	else:
		countD += 1
if countA > countD:
	print('Anton')
elif countD > countA:
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = input()
ais = 0
bs = 0
for i in a:
	if i == 'A':
		ais += 1
	elif i == 'D':
		bs += 1
if ais > bs:
	print('Anton')
elif bs > ais:
	print('Danik')
elif bs == ais:
	print('Friendship')


n = int(input())
n = input()
sumA = n.count('A')
sumD = n.count('D')
if sumA > sumD:
	print('Anton')
elif sumA < sumD:
	print('Danik')
else:
	print('Friendship')


x = int(input())
y = input()
z = list(y)
if z.count('A') > z.count('D'):
	print('Anton')
elif z.count('A') == z.count('D'):
	print('Friendship')
else:
	print('Danik')


import sys
n = int(input())
s = sys.stdin.readline()
c = 0
for i in s:
	if i == 'A':
		c += 1
if c * 2 == n:
	print('Friendship')
elif c * 2 > n:
	print('Anton')
else:
	print('Danik')


rnds = int(input())
(wins, aN) = (input(), 0)
for i in wins:
	if i == 'A':
		aN += 1
if rnds - aN == aN:
	print('Friendship')
else:
	print('Anton' if aN > rnds - aN else 'Danik')


from collections import Counter

def winner(arr):
	arr = Counter(arr)
	if arr['D'] > arr['A']:
		return 'Danik'
	elif arr['A'] > arr['D']:
		return 'Anton'
	else:
		return 'Friendship'
_ = input()
arr = list(input())
print(winner(arr))


class Main:
	n = int(input())
	s = input()
	if s.count('A') > s.count('D'):
		print('Anton')
	elif s.count('A') < s.count('D'):
		print('Danik')
	else:
		print('Friendship')
Main()


n = int(input())
tmp = input()
answer1 = len(tmp.split('D'))
answer2 = len(tmp.split('A'))
if answer1 > answer2:
	print('Danik')
elif answer1 < answer2:
	print('Anton')
else:
	print('Friendship')


n = int(input())
word = input().upper()
a = 0
d = 0
for i in range(len(word)):
	if word[i] == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
a = input()
counta = 0
countd = 0
for i in range(n):
	if a[i] == 'A':
		counta += 1
	else:
		countd += 1
if counta > countd:
	print('Anton')
elif countd > counta:
	print('Danik')
else:
	print('Friendship')


n = int(input())
line = input()
num_A = 0
num_D = 0
for i in line:
	if i == 'A':
		num_A += 1
	else:
		num_D += 1
print('Anton' if num_A > num_D else 'Danik' if num_D > num_A else 'Friendship')


def met(i):
	(l, u) = (0, 0)
	(lr, up) = ('', '')
	for s in i:
		if s == 'D':
			u += 1
		else:
			l += 1
	if u > l:
		return 'Danik'
	if l > u:
		return 'Anton'
	return 'Friendship'
k = input()
n = input()
print(met(n))


n = int(input())
countA = 0
countB = 0
s = input()
for ele in s:
	if ele == 'A':
		countA += 1
	elif ele == 'D':
		countB += 1
if countA > countB:
	print('Anton')
elif countB > countA:
	print('Danik')
elif countA == countB:
	print('Friendship')


x = int(input())
y = input()
z = 0
for char in y:
	if char == 'A':
		z += 1
if z > x - z:
	print('Anton')
elif x - z > z:
	print('Danik')
else:
	print('Friendship')


s = int(input())
t = input()
x = t.count('A')
y = t.count('D')
if x == y:
	print('Friendship')
if x > y:
	print('Anton')
if x < y:
	print('Danik')


x = int(input())
st = input()
ca = cb = 0
for i in range(0, len(st), 1):
	if st[i] == 'A':
		ca += 1
	else:
		cb += 1
if ca > cb:
	print('Anton')
elif cb > ca:
	print('Danik')
else:
	print('Friendship')


a = int(input())
b = input()
an = b.count('A')
dn = b.count('D')
if an > dn:
	print('Anton')
elif an < dn:
	print('Danik')
elif an == dn:
	print('Friendship')


n = int(input())
st = input()
count_A = st.count('A')
remove_A = st.replace('A', '')
remove_A_len = len(remove_A)
if count_A > remove_A_len:
	print('Anton')
elif count_A < remove_A_len:
	print('Danik')
elif count_A == remove_A_len:
	print('Friendship')


games = int(input())
res = input()
if res.count('A') - res.count('D') != 0:
	print('Anton' if res.count('A') > res.count('D') else 'Danik')
else:
	print('Friendship')


def main():
	n = int(input())
	games = list(input())
	a_wins = 0
	d_wins = 0
	winner = 'Friendship'
	for game in games:
		if game == 'A':
			a_wins = a_wins + 1
		else:
			d_wins = d_wins + 1
	if a_wins > d_wins:
		winner = 'Anton'
	if d_wins > a_wins:
		winner = 'Danik'
	print(winner)
main()


def split_char(str):
	return [char for char in str]
n = int(input())
a = 0
win_list = split_char(input())
for winner in win_list:
	a += 1 if winner == 'A' else -1
if a != 0:
	print('Anton' if a > 0 else 'Danik')
else:
	print('Friendship')


number = input('')
string = input('')
d = string.count('D')
a = string.count('A')
if d > a:
	print('Danik')
elif a > d:
	print('Anton')
else:
	print('Friendship')


(n, string) = (int(input()), input())
if string.count('A') > n - string.count('A'):
	print('Anton')
	exit()
print('Danik' if string.count('D') > string.count('A') else 'Friendship')


n = int(input())
s = input()
di = {}
for i in s:
	di[i] = di.get(i, 0) + 1
if di.get('A', 0) > di.get('D', 0):
	print('Anton')
elif di.get('D', 0) > di.get('A', 0):
	print('Danik')
else:
	print('Friendship')


x = input()
x = input()
n = x.count('A')
if len(x) - n == n:
	print('Friendship')
elif len(x) - n < n:
	print('Anton')
else:
	print('Danik')


input()
S = input()
k = 0
k1 = 0
for i in range(len(S)):
	if S[i] == 'D':
		k = k + 1
	else:
		k1 = k1 + 1
if k1 > k:
	print('Anton')
if k1 < k:
	print('Danik')
if k == k1:
	print('Friendship')


_ = input()
s = input()
count = 0
for g in s:
	if g is 'A':
		count += 1
if count > len(s) / 2:
	print('Anton')
elif count < len(s) / 2:
	print('Danik')
else:
	print('Friendship')


num_games = int(input())
games_results = input()
counterA = 0
counterD = 0
for i in range(num_games):
	if games_results[i] == 'A':
		counterA += 1
	else:
		counterD += 1
if counterA > counterD:
	print('Anton')
elif counterA < counterD:
	print('Danik')
else:
	print('Friendship')


import sys
input = sys.stdin.readline

def main():
	n = int(input())
	s = input().strip()
	a = s.count('A')
	d = s.count('D')
	if a > d:
		print('Anton')
	elif a == d:
		print('Friendship')
	else:
		print('Danik')
main()


n = int(input())
a_result = len([_ for _ in input() if _ == 'A'])
print('Anton' if a_result > n / 2 else 'Danik' if a_result < n / 2 else 'Friendship')


def count(arr, w):
	count = 0
	for i in arr:
		if w == i:
			count += 1
	return count
n = int(input())
arr = input()
a = count(arr, 'A')
b = count(arr, 'D')
if a > b:
	print('Anton')
elif b > a:
	print('Danik')
else:
	print('Friendship')


i = input()
wins = input()
A = wins.count('A')
D = wins.count('D')
if A > D:
	print('Anton')
if D > A:
	print('Danik')
if A == D:
	print('Friendship')


_ = input()
main_string = input()
anton_wins = main_string.count('A')
danik_wins = main_string.count('D')
if anton_wins > danik_wins:
	print('Anton')
elif anton_wins == danik_wins:
	print('Friendship')
else:
	print('Danik')


int(input())
l = input()
a = l.count('A')
d = l.count('D')
p = 'Friendship'
if a < d:
	p = 'Danik'
elif a > d:
	p = 'Anton'
print(p)


n = int(input())
s = input()
length = len(s)
cnt1 = 0
cnt2 = 0
for i in range(length):
	if s[i] == 'A':
		cnt1 += 1
	elif s[i] == 'D':
		cnt2 += 1
if cnt1 > cnt2:
	print('Anton')
elif cnt2 > cnt1:
	print('Danik')
else:
	print('Friendship')


from collections import Counter
v = []
k = []
n = int(input())
d = [x for x in input()]
c = Counter(d)
values = c.values()
keys = c.keys()
for i in values:
	v.append(i)
for i in keys:
	k.append(i)
if len(k) == 1 and k[0] == 'A':
	print('Anton')
elif len(k) == 1 and k[0] == 'D':
	print('Danik')
elif v[0] == v[1]:
	print('Friendship')
elif v[0] > v[1] and k[0] == 'A':
	print('Anton')
elif v[0] < v[1] and k[0] == 'A':
	print('Danik')
elif v[0] < v[1] and k[0] == 'D':
	print('Anton')
elif v[0] > v[1] and k[0] == 'D':
	print('Danik')


n = input()
s = input()
(ant, dan) = (0, 0)
for c in s:
	if c == 'D':
		dan += 1
	else:
		ant += 1
if dan > ant:
	print('Danik')
elif ant > dan:
	print('Anton')
else:
	print('Friendship')


n = int(input())
s = input()
ca = 0
cd = 0
for i in s:
	if i == 'A':
		ca += 1
	elif i == 'D':
		cd += 1
if ca > cd:
	print('Anton')
elif cd > ca:
	print('Danik')
elif ca == cd:
	print('Friendship')


x = int(input())
l = input()
d = {}
d[1] = l.count('A')
d[0] = l.count('D')
if d[0] < d[1]:
	print('Anton')
elif d[0] == d[1]:
	print('Friendship')
else:
	print('Danik')


games_count = input()
games_results = input()
a_wins = 0
d_wins = 0
for game_result in games_results:
	if game_result == 'A':
		a_wins += 1
	else:
		d_wins += 1
if a_wins > d_wins:
	print('Anton')
elif d_wins > a_wins:
	print('Danik')
else:
	print('Friendship')


def Anton_and_Danik(string):
	A = string.count('A')
	D = string.count('D')
	if A == D:
		print('Friendship')
	elif A > D:
		print('Anton')
	else:
		print('Danik')
s_size = int(input())
string = input()
Anton_and_Danik(string)


nums = int(input())
wins = input()
a = wins.count('A')
d = wins.count('D')
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


line1 = input()
line2 = input()
count = 0
count1 = 0
for e in line2:
	if e == 'A':
		count = count + 1
	else:
		count1 = count1 + 1
if count > count1:
	print('Anton')
elif count < count1:
	print('Danik')
else:
	print('Friendship')


n = int(input())
ls = [x for x in input()]
ans = ls.count('D')
ans2 = ls.count('A')
if ans < ans2:
	print('Anton')
elif ans > ans2:
	print('Danik')
else:
	print('Friendship')


class Solution:

	def solve(self, string):
		mDict = {'A': 0, 'D': 0}
		for ch in string:
			if ch == 'A':
				mDict['A'] += 1
			elif ch == 'D':
				mDict['D'] += 1
		if mDict['A'] > mDict['D']:
			return 'Anton'
		elif mDict['A'] < mDict['D']:
			return 'Danik'
		else:
			return 'Friendship'
sol = Solution()
t = int(input().strip())
string = input().strip()
print(sol.solve(string))


n = int(input())
c = input()
k = 0
for i in range(n):
	if c[i] == 'A':
		k += 1
if k > n / 2:
	print('Anton')
elif k < n / 2:
	print('Danik')
elif n % 2 == 0:
	if k == n / 2:
		print('Friendship')


n = int(input())
L = input()
L1 = L.count('D')
L2 = L.count('A')
if L1 < L2:
	print('Anton')
elif L2 < L1:
	print('Danik')
else:
	print('Friendship')


n = int(input())
results = input()
anton = results.count('A')
danik = len(results) - anton
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


print((lambda x, y: 'Anton' if y.count('A') > y.count('D') else 'Danik' if y.count('A') < y.count('D') else 'Friendship')(int(input()), input()))


(s1, s) = (input(), input())
(sum1, sum2) = (0, 0)
for i in s:
	if i == 'A':
		sum1 += 1
	else:
		sum2 += 1
if sum1 > sum2:
	print('Anton')
elif sum2 > sum1:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = str(input())
s1 = list(s)
d = 0
a = 0
for i in range(len(s1)):
	if s1[i] == 'D':
		d = d + 1
for j in range(len(s1)):
	if s1[j] == 'A':
		a = a + 1
if a > d:
	print('Anton')
elif a == d:
	print('Friendship')
else:
	print('Danik')


_ = input()
games = input()
(anton, danik) = (0, 0)
for char in games:
	if char == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


number = int(input())
winner = str(input())
anton = 0
danok = 0
for i in winner:
	if i == 'A':
		anton += 1
	elif i == 'D':
		danok += 1
if anton == danok:
	print('Friendship')
elif anton > danok:
	print('Anton')
else:
	print('Danik')


_ = input()
inp = input()
inp = list(inp)
(aCount, dCount) = (0, 0)
for x in inp:
	if x == 'A':
		aCount += 1
	if x == 'D':
		dCount += 1
if aCount > dCount:
	print('Anton')
elif aCount < dCount:
	print('Danik')
else:
	print('Friendship')


_ = int(input())
l = input()
(a, d) = (0, 0)
for i in l:
	if i == 'A':
		a += 1
	else:
		d += 1
if a == d:
	print('Friendship')
elif a > d:
	print('Anton')
else:
	print('Danik')


n = int(input())
game = input()
a = game.count('A')
d = game.count('D')
print('Anton') if a > d else print('Danik') if a < d else print('Friendship')


n = int(input())
outputs = input()
antony = 0
danik = 0
for output in outputs:
	if output == 'A':
		antony += 1
	else:
		danik += 1
if antony > danik:
	print('Anton')
elif antony < danik:
	print('Danik')
else:
	print('Friendship')


num = input()
a = input()
if a.count('A') > a.count('D'):
	print('Anton')
if a.count('D') > a.count('A'):
	print('Danik')
if a.count('A') == a.count('D'):
	print('Friendship')


r = int(input())
s = input()
count1 = 0
count2 = 0
for i in range(r):
	if s[i] == 'A':
		count1 += 1
	else:
		count2 += 1
if count1 > count2:
	print('Anton')
elif count1 < count2:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = str(input())
anton_wins = s.count('A')
danik_wins = n - anton_wins
ans = 'Friendship'
if anton_wins > danik_wins:
	ans = 'Anton'
elif anton_wins < danik_wins:
	ans = 'Danik'
print(ans)


n = int(input())
s = input()
awon = 0
dwon = 0
for i in range(n):
	if s[i] == 'A':
		awon += 1
	elif s[i] == 'D':
		dwon += 1
if awon > dwon:
	print('Anton')
elif dwon > awon:
	print('Danik')
else:
	print('Friendship')


amount = int(input())
input_str = input()
anton = input_str.count('A')
danik = input_str.count('D')
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
elif danik == anton:
	print('Friendship')


n = int(input()) / 2
s = input()
a_count = s.count('A')
print('Friendship' if a_count == n else 'Anton' if a_count > n else 'Danik')


n = int(input())
name = input()
anton_score = 0
danik_score = 0
for i in range(n):
	if name[i] == 'A':
		anton_score += 1
	elif name[i] == 'D':
		danik_score += 1
if anton_score > danik_score:
	print('Anton')
elif anton_score < danik_score:
	print('Danik')
else:
	print('Friendship')


n = eval(input())
s = input()
a = s.count('A')
if 2 * a == n:
	print('Friendship')
elif 2 * a > n:
	print('Anton')
else:
	print('Danik')


n = int(input())
string = input()
a = 0
d = 0
for char in string:
	if char == 'A':
		a += 1
	if char == 'D':
		d += 1
if a == d:
	print('Friendship')
if a > d:
	print('Anton')
if d > a:
	print('Danik')


num_of_games = int(input())
results = input()
A = 0
D = 0
for result in results:
	if result == 'A':
		A += 1
	else:
		D += 1
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


numDeLets = int(input())
games = input()
anton = 0
danik = 0
for c in games:
	if c == 'A':
		anton = anton + 1
	else:
		danik = danik + 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


no_of_games = int(input())
list = list(input())
Anton = 0
Danik = 0
for i in list:
	if i == 'A':
		Anton += 1
	else:
		Danik += 1
if Anton > Danik:
	print('Anton')
elif Anton < Danik:
	print('Danik')
else:
	print('Friendship')


games = input()
win = input().upper()
winl = list(win)
a = 0
d = 0
for (i, j) in enumerate(winl):
	if j == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input().upper()
d = []
a = []
for i in range(len(s)):
	if s[i] == 'D':
		d.append(i)
	else:
		a.append(i)
if len(d) > len(a):
	print('Danik')
elif len(a) > len(d):
	print('Anton')
elif len(d) == len(a):
	print('Friendship')


n = int(input())
games = input()
A_win = games.count('A')
D_win = games.count('D')
if A_win > D_win:
	print('Anton')
elif A_win == D_win:
	print('Friendship')
else:
	print('Danik')


def main():
	input()
	val = input()
	danik = val.count('D')
	anton = val.count('A')
	if danik > anton:
		print('Danik')
	elif anton > danik:
		print('Anton')
	else:
		print('Friendship')
main()


N = input()
T = list(input())
if T.count('A') > T.count('D'):
	print('Anton')
elif T.count('A') == T.count('D'):
	print('Friendship')
else:
	print('Danik')


def chess(string):
	(anton, danik) = (0, 0)
	for ele in string:
		if ele == 'A':
			anton += 1
		if ele == 'D':
			danik += 1
	if anton > danik:
		print('Anton')
	elif anton < danik:
		print('Danik')
	else:
		print('Friendship')
n = int(input())
chess(input())


def num_occ(st):
	a = st.count('A')
	d = st.count('D')
	if a > d:
		print('Anton')
	elif a < d:
		print('Danik')
	else:
		print('Friendship')
inp = input()
inp_str = input()
num_occ(inp_str)


n = int(input())
s = input()
from collections import Counter
a = Counter(s)['A']
if a > n - a:
	print('Anton')
elif a == n - a:
	print('Friendship')
else:
	print('Danik')


t = int(input())
name = input()
i = 0
a = 0
b = 0
while i < t:
	if name[i] == 'A':
		a += 1
		i += 1
	else:
		b += 1
		i += 1
if a > b:
	print('Anton')
elif a == b:
	print('Friendship')
else:
	print('Danik')


denis = int(input())
sined = input()
satuk1 = 0
satuk2 = 0
for i in sined:
	if i == 'A':
		satuk1 += 1
	else:
		satuk2 += 1
if satuk1 > satuk2:
	print('Anton')
if satuk1 < satuk2:
	print('Danik')
if satuk1 == satuk2:
	print('Friendship')


def find(a):
	(aa, dd) = (0, 0)
	for i in range(len(a)):
		if a[i] == 'A':
			aa += 1
			continue
		else:
			dd += 1
			continue
	if aa > dd:
		print('Anton')
	elif aa < dd:
		print('Danik')
	else:
		print('Friendship')
n = int(input())
a = input()
find(a)


n = int(input())
a = 0
d = 0
i = input()
if n == len(i):
	for k in range(len(i)):
		if i[k] == 'A':
			a += 1
		elif i[k] == 'D':
			d += 1
	if a > d:
		r = 'Anton'
	elif d > a:
		r = 'Danik'
	else:
		r = 'Friendship'
print(r)


times = input()
winner = list(input())
Danik = 0
anton = 0
for i in winner:
	if i == 'A':
		anton += 1
	else:
		Danik += 1
if anton > Danik:
	print('Anton')
elif Danik > anton:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
score = sum([1 if x == 'A' else -1 for x in s])
print('Anton' if score > 0 else 'Danik' if score < 0 else 'Friendship')


blank = input()
line = input()
results = {'A': 0, 'D': 0}
for i in line:
	if i == 'A':
		results['A'] += 1
	else:
		results['D'] += 1
if results['A'] > results['D']:
	print('Anton')
elif results['A'] < results['D']:
	print('Danik')
else:
	print('Friendship')


sumA = 0
sumD = 0
n = int(input())
l = input()
for i in l:
	if i == 'A':
		sumA += 1
	elif i == 'D':
		sumD += 1
if sumA > sumD:
	print('Anton')
elif sumA < sumD:
	print('Danik')
elif sumA == sumD:
	print('Friendship')


def main():
	n = int(input())
	anton = 0
	danik = 0
	string = input()
	for s in string:
		if s == 'A':
			anton += 1
		else:
			danik += 1
	if anton > danik:
		print('Anton')
	elif danik > anton:
		print('Danik')
	else:
		print('Friendship')
main()


anton = 'Anton'
danik = 'Danik'

def get_winner(record):
	anton_sum = 0
	danik_sum = 0
	for letter in record.upper():
		if letter == 'A':
			anton_sum += 1
		else:
			danik_sum += 1
	if anton_sum == danik_sum:
		return 'Friendship'
	else:
		return anton if anton_sum > danik_sum else danik
input()
data = input()
print(get_winner(data))


num = int(input())
word = input()
if word.count('A') > word.count('D'):
	print('Anton')
if word.count('A') < word.count('D'):
	print('Danik')
if word.count('A') == word.count('D'):
	print('Friendship')


n = int(input())
inp = input()
ant = inp.count('A')
dan = inp.count('D')
if ant > dan:
	print('Anton')
elif ant < dan:
	print('Danik')
else:
	print('Friendship')


def main():
	n = int(input())
	s = input()
	a = s.count('A')
	d = len(s) - a
	if a > d:
		print('Anton')
	elif d > a:
		print('Danik')
	else:
		print('Friendship')
main()


pom = 0
n = input()
n = input()
for i in n:
	if i == 'D':
		pom += 1
if len(n) - pom == len(n) // 2 and len(n) % 2 == 0:
	print('Friendship')
elif len(n) - pom > len(n) // 2:
	print('Anton')
else:
	print('Danik')


games = int(input())
score = input()
a = score.count('A')
if a > games / 2:
	print('Anton')
elif a < games / 2:
	print('Danik')
else:
	print('Friendship')


num = input()
WinText = input()
i = 0
a = 0
d = 0
while i < int(num):
	if WinText[i] == 'A':
		a += 1
	else:
		d += 1
	i += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
d = input().count('D')
if d > n - d:
	print('Danik')
elif d < n - d:
	print('Anton')
else:
	print('Friendship')


n = int(input())
games = input()
Anton = 0
Danik = 0
list = []
for i in str(games):
	list.append(i)
for j in range(0, n):
	if list[j] == 'A':
		Anton += 1
	elif list[j] == 'D':
		Danik += 1
if Anton > Danik:
	print('Anton')
elif Anton < Danik:
	print('Danik')
else:
	print('Friendship')


n = int(input(''))
b = input('')
i = 0
lis = list()
for i in b:
	lis.append(i)
a = 0
d = 0
for element in lis:
	if element == 'A':
		a = a + 1
	else:
		d = d + 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = input()
string = input()
N = len(list(string))
counter = 0
for x in string:
	if x == 'D':
		counter += 1
if counter > N / 2:
	print('Danik')
elif counter == N / 2:
	print('Friendship')
else:
	print('Anton')


n = int(input())
string = input()
sum = 0
for i in string:
	if i == 'A':
		sum += 1
if 2 * sum > n:
	print('Anton')
elif 2 * sum == n:
	print('Friendship')
else:
	print('Danik')


n = int(input())
games = input()
anton = 0
danik = 0
i = 0
while i < n and anton <= int(n / 2 + 1) and (danik <= int(n / 2 + 1)):
	if games[i] == 'A':
		anton += 1
	else:
		danik += 1
	i += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


input()
X = input()
if X.count('A') > X.count('D'):
	print('Anton')
elif X.count('A') < X.count('D'):
	print('Danik')
else:
	print('Friendship')


import sys
inf = sys.stdin

def main() -> None:
	n = int(inf.readline())
	s = inf.readline()
	num_a = num_d = 0
	for i in range(n):
		if s[i] == 'A':
			num_a += 1
		else:
			num_d += 1
	if num_a > num_d:
		print('Anton')
	elif num_a < num_d:
		print('Danik')
	else:
		print('Friendship')
	return None
main()


games = int(input())
results = input()
anton = 0
danik = 0
for char in results:
	if char == 'A':
		anton += 1
	elif char == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
elif anton == danik:
	print('Friendship')


n = int(input())
s = input()
k = s.count('A')
d = n - k
if k > d:
	print('Anton')
elif d > k:
	print('Danik')
else:
	print('Friendship')


n = int(input())
results = [str(x) for x in input()]
anton = list(filter(lambda x: x == 'A', results))
partidas_anton = len(anton)
partidas_danik = n - partidas_anton
if partidas_anton > partidas_danik:
	print('Anton')
elif partidas_danik > partidas_anton:
	print('Danik')
else:
	print('Friendship')


a = int(input())
s = 0
e = 0
b = input().strip()
for i in b:
	if i is 'A':
		s += 1
	else:
		e += 1
if s > e:
	print('Anton')
elif e > s:
	print('Danik')
else:
	print('Friendship')


def solve(s: str) -> str:
	if s.count('A') == s.count('D'):
		return 'Friendship'
	return ['Danik', 'Anton'][s.count('A') > s.count('D')]
n = int(input())
s = input()
print(solve(s))


def which_victory(chars):
	counter = {'A': 0, 'D': 0}
	for char in chars:
		counter[char] += 1
	if counter['A'] > counter['D']:
		return 'Anton'
	elif counter['D'] > counter['A']:
		return 'Danik'
	else:
		return 'Friendship'

def main():
	n = int(input())
	games = input()
	print(which_victory(games))
main()


n = int(input())
s = input()
t = list(s)
count = 0
for _ in t:
	if _ == 'A':
		count += 1
	else:
		pass
if count > n - count:
	print('Anton')
elif count == n - count:
	print('Friendship')
else:
	print('Danik')


alton = danik = 0
n = input()
a = input()
for var in a:
	if var == 'A':
		alton += 1
	else:
		danik += 1
ans = 'Anton' if alton > danik else 'Friendship' if alton == danik else 'Danik'
print(ans)


def parties(jeux, vics):
	(totalA, totalD) = (0, 0)
	for i in range(jeux):
		if vics[i] == 'A':
			totalA += 1
		else:
			totalD += 1
	if totalD > totalA:
		return 'Danik'
	if totalA > totalD:
		return 'Anton'
	if totalD == totalA:
		return 'Friendship'
j = int(input())
v = input()
print(parties(j, v))


x = int(input())
arr = input()
A = 0
D = 0
A += arr.count('A')
D += arr.count('D')
if A > D:
	print('Anton')
elif D > A:
	print('Danik')
else:
	print('Friendship')


n = int(input())
score = input()
anton = score.count('A')
danik = score.count('D')
out = 'Friendship'
if anton > danik:
	out = 'Anton'
elif danik > anton:
	out = 'Danik'
print(out)


import sys
from collections import Counter
first = input()
second = input()
n_games = int(first)
game_string = second.replace('\n', '')
if len(game_string) != n_games:
	print('ERROR! Invalid input')
	sys.exit(-1)
counter = Counter(game_string)
if counter['A'] > counter['D']:
	print('Anton')
elif counter['A'] < counter['D']:
	print('Danik')
else:
	print('Friendship')


N = int(input())
a = input()
ans = a.count('A')
new = N - ans
if ans > new:
	print('Anton')
elif ans < new:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
ca = s.count('A')
cd = s.count('D')
if ca > cd:
	print('Anton')
elif cd > ca:
	print('Danik')
elif cd == ca:
	print('Friendship')


from collections import Counter
n = int(input())
s = input()
l = list(s)
x = Counter(l)
if x['A'] > x['D']:
	print('Anton')
elif x['A'] < x['D']:
	print('Danik')
else:
	print('Friendship')


import sys
n = sys.stdin.readline()
games = sys.stdin.readline().strip()
(D, A) = (0, 0)
for c in games:
	if c == 'D':
		D += 1
	else:
		A += 1
if D > A:
	print('Danik')
elif A > D:
	print('Anton')
else:
	print('Friendship')


n_of_games = int(input())
games_result = input()
danik = 0
anton = 0
for game in games_result:
	if game == 'D':
		danik += 1
	else:
		anton += 1
if danik > anton:
	print('Danik')
elif anton > danik:
	print('Anton')
else:
	print('Friendship')


n = int(input())
l = list(map(str, input()))
(f, h) = (0, 0)
for x in l:
	if x == 'A':
		f += 1
	else:
		h += 1
if f > h:
	print('Anton')
elif f == h:
	print('Friendship')
else:
	print('Danik')


input()
str = input()
antonWins = str.count('A')
danikWins = str.count('D')
if antonWins > danikWins:
	print('Anton')
elif antonWins < danikWins:
	print('Danik')
elif antonWins == antonWins:
	print('Friendship')


_ = input()
s = input()
a = 0
d = 0
for x in s:
	if x == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


number_of_game_played = input()
result_of_each_game = input()
A_win = 0
D_win = 0
for i in result_of_each_game:
	if i == 'A':
		A_win += 1
	else:
		D_win += 1
if A_win > D_win:
	print('Anton')
elif A_win == D_win:
	print('Friendship')
else:
	print('Danik')


n = int(input())
score = list(input())
counter_a = score.count('A')
counter_d = n - counter_a
if counter_a > counter_d:
	print('Anton')
elif counter_a < counter_d:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = str(input())
bra = 0
brd = 0
for i in range(0, len(s)):
	if s[i] == 'A':
		bra += 1
	else:
		brd += 1
if brd > bra:
	print('Danik')
if bra > brd:
	print('Anton')
if bra == brd:
	print('Friendship')


n = int(input())
s = input()
x = s.count('A')
if x < n * 0.5:
	print('Danik')
elif x == n * 0.5:
	print('Friendship')
else:
	print('Anton')


n = int(input())
s = input()
if n % 2 == 0:
	if s.count('A') == len(s) // 2:
		ans = 'Friendship'
	if s.count('A') > len(s) // 2:
		ans = 'Anton'
	if s.count('D') > len(s) // 2:
		ans = 'Danik'
else:
	if s.count('D') > len(s) // 2:
		ans = 'Danik'
	if s.count('A') > len(s) // 2:
		ans = 'Anton'
print(ans)


def solution(n, s):
	A = D = 0
	for i in s:
		if i == 'A':
			A += 1
		else:
			D += 1
	if A > D:
		print('Anton')
	elif A < D:
		print('Danik')
	else:
		print('Friendship')
n = int(input())
s = input().strip()
if not s:
	print('Friendship')
solution(n, s)


n = int(input())
s = input()
Anton = 0
Danik = 0
for won in s:
	if won == 'A':
		Anton += 1
	else:
		Danik += 1
if Anton > Danik:
	print('Anton')
elif Anton < Danik:
	print('Danik')
else:
	print('Friendship')


in1 = int(input())
in2 = input()
a = 0
d = 0
for i in range(in1):
	if in2[i] == 'A':
		a = a + 1
	else:
		d = d + 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


a = int(input())
b = input()
acount = 0
dcount = 0
for e in b:
	if e == 'A':
		acount += 1
	else:
		dcount += 1
if acount > dcount:
	print('Anton')
elif dcount > acount:
	print('Danik')
else:
	print('Friendship')


n = int(input())
m = input()
z = m.count('A')
v = m.count('D')
if z > v:
	print('Anton')
elif v > z:
	print('Danik')
else:
	print('Friendship')


played = input()
anton = input().count('A')
if int(played) - anton < anton:
	print('Anton')
elif int(played) - anton > anton:
	print('Danik')
else:
	print('Friendship')


import math
n = int(input())
s = input()
nbA = s.count('A')
if nbA > math.ceil(n / 2):
	print('Anton')
elif nbA == math.ceil(n / 2):
	if len(s) == 1:
		print('Anton')
	else:
		print('Friendship')
else:
	print('Danik')


from functools import reduce
input()
string = input()
result = reduce(lambda y, x: y + (1 if x == 'A' else -1), string, 0)
if result > 0:
	print('Anton')
elif result < 0:
	print('Danik')
else:
	print('Friendship')


import collections
t = int(input())
s = input()
d = collections.Counter(s)
if d['D'] > d['A']:
	print('Danik')
elif d['D'] < d['A']:
	print('Anton')
else:
	print('Friendship')


n = int(input())
kek = input()
a = [0, 0]
for k in kek:
	if k == 'D':
		a[0] += 1
	else:
		a[1] += 1
if a[0] > a[1]:
	print('Danik')
elif a[0] < a[1]:
	print('Anton')
else:
	print('Friendship')


t = int(input())
l = input()
a = l.count('A')
b = l.count('D')
if a > b:
	print('Anton')
elif a < b:
	print('Danik')
elif a == b:
	print('Friendship')


inp = input
li = list
iinp = lambda : int(inp())
ent = lambda : map(int, inp().split())
lient = lambda : [int(i) for i in inp().split()]
li0 = lambda x: [0 for i in range(x)]
n = iinp()
a = d = 0
vic = inp()
for i in vic:
	if i == 'A':
		a += 1
	else:
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
a = []
for i in range(n):
	a.append(s[i])
if a.count('A') == a.count('D'):
	print('Friendship')
elif a.count('A') > a.count('D'):
	print('Anton')
elif a.count('A') < a.count('D'):
	print('Danik')


a = input()
b = input()
c = list(b)
d = c.count('A')
e = c.count('D')
if d > e:
	print('Anton')
elif e > d:
	print('Danik')
elif e == d:
	print('Friendship')


input('')
games = input('')
Acount = Dcount = 0
for letter in games:
	if letter is 'A':
		Acount += 1
	if letter is 'D':
		Dcount += 1
if Acount > Dcount:
	print('Anton')
elif Dcount > Acount:
	print('Danik')
else:
	print('Friendship')


def how_is_win(n, s):
	hows_win = 0
	for char in s:
		hows_win += 1 if char is 'A' else -1
	if hows_win > 0:
		return 'Anton'
	elif hows_win < 0:
		return 'Danik'
	else:
		return 'Friendship'
print(how_is_win(input(), input()))


k = input()
n = input()
k = int(k)
cnt_A = n.count('A')
cnt_B = n.count('D')
if cnt_A > cnt_B:
	print('Anton')
elif cnt_A < cnt_B:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = str(input())
s = list(s)
pA = 0
pD = 0
for i in s:
	if i == 'A':
		pA = pA + 1
	elif i == 'D':
		pD = pD + 1
if pA == pD:
	print('Friendship')
elif pA > pD:
	print('Anton')
elif pA < pD:
	print('Danik')


n = int(input())
Anton_scores = 0
Danik_scores = 0
games = input()
for game in games:
	if game == 'A':
		Anton_scores += 1
	else:
		Danik_scores += 1
if Anton_scores > Danik_scores:
	print('Anton')
elif Anton_scores < Danik_scores:
	print('Danik')
else:
	print('Friendship')


from collections import OrderedDict
n = input()
a = input()
A = 0
for i in a:
	if i == 'A':
		A += 1
if A > len(a) - A:
	print('Anton')
elif A == len(a) - A:
	print('Friendship')
else:
	print('Danik')


n = int(input())
s = input()
a_count = s.count('A')
d_count = n - a_count
if a_count == d_count:
	print('Friendship')
elif a_count > d_count:
	print('Anton')
else:
	print('Danik')


def main():
	n = int(input())
	s = input()
	antony = 0
	for i in range(n):
		k = s[i]
		antony += k == 'A'
	if antony > n - antony:
		print('Anton')
	elif antony < n - antony:
		print('Danik')
	else:
		print('Friendship')
main()


n = int(input())
b = input()
i = 0
d = 0
while i < n:
	if b[i] == 'D':
		d += 1
	i += 1
if d * 2 < n:
	print('Anton')
if d * 2 == n:
	print('Friendship')
if d * 2 > n:
	print('Danik')


n = int(input())
s = sorted(input())
c = 0
for i in s:
	if i == 'A':
		c += 1
	else:
		break
if c > abs(len(s) - c):
	print('Anton')
elif c < abs(len(s) - c):
	print('Danik')
else:
	print('Friendship')


s = int(input())
m = []
d = input()
for i in d:
	m.append(i)
o = m.count('A')
p = m.count('D')
if o > p:
	print('Anton')
elif o < p:
	print('Danik')
else:
	print('Friendship')


x = int(input())
b = str(input())
c = 0
d = 0
for i in range(x):
	if b[i] == 'A':
		c = c + 1
	else:
		d = d + 1
if c > d:
	print('Anton')
elif d > c:
	print('Danik')
else:
	print('Friendship')


T = int(input())
games = list(input())
A = games.count('A')
D = len(games) - A
if A > D:
	print('Anton')
elif A < D:
	print('Danik')
else:
	print('Friendship')


t = input()
t = int(t)
strng = input()
x = strng.count('A')
y = strng.count('D')
if x > y:
	print('Anton')
elif x < y:
	print('Danik')
else:
	print('Friendship')


while True:
	try:
		n = int(input())
		results = input()
		(anton_wins, dan_wins) = (0, 0)
		for letter in results:
			if letter is 'A':
				anton_wins += 1
			else:
				dan_wins += 1
		if dan_wins > anton_wins:
			print('Danik')
		elif anton_wins > dan_wins:
			print('Anton')
		else:
			print('Friendship')
	except EOFError:
		break


n = int(input())
s = input()
(counter_d, counter_a) = (0, 0)
for i in range(n):
	if s[i] == 'D':
		counter_d += 1
	else:
		counter_a += 1
if counter_a == counter_d:
	print('Friendship')
elif counter_a > counter_d:
	print('Anton')
else:
	print('Danik')


l = int(input())
d = input()
ac = dc = 0
ac = d.count('A')
dc = l - ac
if ac > dc:
	print('Anton')
elif dc > ac:
	print('Danik')
else:
	print('Friendship')


numGames = int(input())
score = str(input())
sList = score.split()
scoreList = []
for i in sList[0]:
	scoreList.append(i)
antonWon = 0
danikWon = 0
for i in scoreList:
	if i == 'A':
		antonWon += 1
	elif i == 'D':
		danikWon += 1
if antonWon > danikWon:
	print('Anton')
elif danikWon > antonWon:
	print('Danik')
else:
	print('Friendship')


n = int(input())
q = [str(x) for x in input()]
cA = q.count('A')
cD = n - cA
if cA == cD:
	print('Friendship')
else:
	print('Anton' if cA > cD else 'Danik')


games = int(input())
result = str(input())
danik = anton = 0
for i in result:
	if i == 'A':
		anton += 1
	else:
		danik += 1
if danik > anton:
	print('Danik')
elif anton > danik:
	print('Anton')
else:
	print('Friendship')


T = int(input())
word = input()
a = 0
d = 0
for i in range(len(word)):
	if word[i] == 'A':
		a += 1
	if word[i] == 'D':
		d += 1
if a > d:
	print('Anton')
elif a == d:
	print('Friendship')
else:
	print('Danik')
ans = ''
print(ans)


n = int(input())
gameScene = input()
antonWon = 0
danikWon = 0
for winner in gameScene:
	if winner == 'A':
		antonWon += 1
	else:
		danikWon += 1
if antonWon == danikWon:
	print('Friendship')
elif antonWon > danikWon:
	print('Anton')
else:
	print('Danik')


num = int(input())
winner = input()
Acount = 0
Dcount = 0
for i in winner:
	if i == 'A':
		Acount += 1
	if i == 'D':
		Dcount += 1
if Acount < Dcount:
	print('Danik')
elif Dcount < Acount:
	print('Anton')
else:
	print('Friendship')


n = input()
s = input()
i = s.count('A')
j = s.count('D')
if i == j:
	print('Friendship')
elif i < j:
	print('Danik')
else:
	print('Anton')


n = int(input())
winners = input()
anton_wins = winners.count('A')
if anton_wins > n - anton_wins:
	print('Anton')
elif anton_wins < n - anton_wins:
	print('Danik')
else:
	print('Friendship')


t = input()
string = input()
s = sum([-1 if i == 'A' else 1 for i in list(string)])
if s < 0:
	print('Anton')
elif s == 0:
	print('Friendship')
else:
	print('Danik')


_ = input()
s = input()
if s.count('A') == s.count('D'):
	print('Friendship')
if s.count('A') > s.count('D'):
	print('Anton')
if s.count('A') < s.count('D'):
	print('Danik')


n = int(input())
x = input()
ACNT = 0
DCNT = 0
for i in x:
	if i == 'A':
		ACNT += 1
	else:
		DCNT += 1
if ACNT > DCNT:
	print('Anton')
elif ACNT < DCNT:
	print('Danik')
else:
	print('Friendship')


n = int(input())
l = [x for x in input()]
a = l.count('A')
d = l.count('D')
if a == d:
	print('Friendship')
elif a > d:
	print('Anton')
else:
	print('Danik')


number = input()
games_end = input()
games_end = list(games_end)
anton = 0
danik = 0
for game in games_end:
	if game == 'A':
		anton += 1
	elif game == 'D':
		danik += 1
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


x = input()
inp = str(input())
a = int(inp.count('A'))
d = int(inp.count('D'))
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


t = int(input())
p = list(map(str, input()))
anton = 0
danik = 0
for i in range(t):
	if p[i] == 'A':
		anton += 1
	else:
		danik += 1
if anton > danik:
	print('Anton')
elif anton == danik:
	print('Friendship')
else:
	print('Danik')


a = int(input())
s = str(input())
k = 0
d = 0
for i in range(0, len(s)):
	if s[i] == 'A':
		k += 1
	elif s[i] == 'D':
		d += 1
if k < d:
	print('Danik')
elif k > d:
	print('Anton')
elif k == d:
	print('Friendship')


from collections import Counter as C
n = int(input())
m = list(input())
m = C(m)
a = m['A']
b = m['D']
if a > b:
	print('Anton')
elif b > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
acount = s.count('A')
dcount = s.count('D')
if acount > dcount:
	print('Anton')
elif acount < dcount:
	print('Danik')
else:
	print('Friendship')


input()
s = input()
c = s.count('A')
d = len(s) - c
if c > d:
	print('Anton')
elif d > c:
	print('Danik')
else:
	print('Friendship')


def decider(string):
	A = 0
	D = 0
	for char in string:
		if char is 'A':
			A += 1
		elif char is 'D':
			D += 1
	if A > D:
		return 'Anton'
	elif D > A:
		return 'Danik'
	else:
		return 'Friendship'
n = input()
s = input()
print(decider(s))


n = int(input())
st = input().rstrip().upper()
(count_A, count_D) = (0, 0)
for i in st:
	if i == 'A':
		count_A += 1
	else:
		count_D += 1
if count_A > count_D:
	print('Anton')
elif count_A < count_D:
	print('Danik')
else:
	print('Friendship')


n = int(input())
fl = input()
count = 0
if fl.count('A') > fl.count('D'):
	print('Anton')
elif fl.count('D') > fl.count('A'):
	print('Danik')
elif fl.count('A') == fl.count('D'):
	print('Friendship')


def solve():
	n = int(input())
	s = input()
	a = 0
	d = 0
	for si in s:
		if si == 'A':
			a += 1
		else:
			d += 1
	if a > d:
		print('Anton')
	elif a == d:
		print('Friendship')
	else:
		print('Danik')
solve()


def solve(s):
	a = s.count('A') - s.count('D')
	if a > 0:
		return 'Anton'
	if a < 0:
		return 'Danik'
	return 'Friendship'
input()
s = input()
print(solve(s))


game = int(input())
results = [_ for _ in input()]
(a, d) = [0, 0]
for char in results:
	if char == 'A':
		a += 1
	elif char == 'D':
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = input()
l = list((x for x in input()))
c = l.count('A')
c1 = l.count('D')
if c == c1:
	print('Friendship')
elif c > c1:
	print('Anton')
else:
	print('Danik')


import sys, math
n = int(input())
s = input()
a = s.count('A')
b = n - a
if a == b:
	print('Friendship')
elif b > a:
	print('Danik')
else:
	print('Anton')


cgame = int(input())
a = input().split()
t = tuple(a)
i = 0
ca = 0
cd = 0
while i < cgame:
	if t[0][i] == 'A':
		ca += 1
		i += 1
	else:
		cd += 1
		i += 1
if ca > cd:
	print('Anton')
elif ca < cd:
	print('Danik')
else:
	print('Friendship')


x = int(input())
a = 0
d = 0
ws = input()
for i in range(x):
	w = ws[i]
	if w == 'A':
		a += 1
	elif w == 'D':
		d += 1
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


no_g = int(input())
result = input()
display = ['Anton', 'Danik', 'Friendship']
points = [0, 0]
for i in result:
	if i == 'A':
		points[0] = points[0] + 1
	else:
		points[1] = points[1] + 1
if points[0] > points[1]:
	print(display[0])
if points[0] < points[1]:
	print(display[1])
if points[0] == points[1]:
	print(display[2])


def check_winner(n, string):
	a = 0
	d = 0
	for ch in string:
		if ch == 'A':
			a += 1
		if ch == 'D':
			d += 1
		if a > n / 2:
			return 'Anton'
		if d > n / 2:
			return 'Danik'
	if a == d:
		return 'Friendship'
	if a > d:
		return 'Anton'
	else:
		return 'Danik'
n = int(input())
print(check_winner(n, input().strip()))


t = int(input())
x = str(input())
t = len(x)
acount = 0
dcount = 0
for i in range(0, len(x)):
	if x[i] == 'A':
		acount += 1
	else:
		dcount += 1
if acount > dcount:
	print('Anton')
elif acount == dcount:
	print('Friendship')
else:
	print('Danik')


import sys
from collections import Counter
n = int(sys.stdin.readline().strip())
s = sys.stdin.readline().strip()
res = Counter(s)
if res['A'] > res['D']:
	print('Anton')
elif res['A'] < res['D']:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = list(input())
(x1, x2) = (s.count('A'), s.count('D'))
if x1 > x2:
	print('Anton')
elif x2 > x1:
	print('Danik')
else:
	print('Friendship')


n = int(input())
x = input()
j = 0
g = 0
for i in range(n):
	if x[i] in 'A':
		j = j + 1
	else:
		g = g + 1
if j > g:
	print('Anton')
elif g > j:
	print('Danik')
else:
	print('Friendship')


n = int(input())
l = list(input())
Ant = sum([1 if x == 'A' else 0 for x in l])
Dan = n - Ant
print('Anton' if Ant > Dan else 'Danik' if Dan > Ant else 'Friendship')


def who_won(games):
	global wins
	wins = {'A': 0, 'D': 0}
	for win in games:
		wins[win] += 1
n = input()
games = input()
who_won(games)
if wins['A'] > wins['D']:
	print('Anton')
elif wins['A'] < wins['D']:
	print('Danik')
else:
	print('Friendship')


def result(a, b):
	if a == b:
		return 'Friendship'
	if a > b:
		return 'Anton'
	return 'Danik'
input()
s = input()
anton = 0
for c in s:
	if c == 'A':
		anton += 1
danik = len(s) - anton
print(result(anton, danik))


import collections
_ = input()
thestring = input()
d = collections.defaultdict(int)
for c in thestring:
	d[c] += 1
if d['A'] > d['D']:
	print('Anton')
elif d['A'] < d['D']:
	print('Danik')
else:
	print('Friendship')


time = int(input())
data = list(input().strip().upper())
(a, da) = (0, 0)
for d in data:
	if d == 'A':
		a += 1
	elif d == 'D':
		da += 1
if a > da:
	print('Anton')
elif da > a:
	print('Danik')
else:
	print('Friendship')


input()
d = {'A': 0, 'D': 0}
for c in input():
	d[c] += 1
if d['A'] > d['D']:
	print('Anton')
elif d['A'] < d['D']:
	print('Danik')
else:
	print('Friendship')


(z, zz) = (input, lambda : list(map(int, z().split())))
zzz = lambda : [int(i) for i in stdin.readline().split()]
(szz, graph, mod, szzz) = (lambda : sorted(zz()), {}, 10 ** 9 + 7, lambda : sorted(zzz()))
from string import *
from re import *
from collections import *
from queue import *
from sys import *
from collections import *
from math import *
from heapq import *
from itertools import *
from bisect import *
from collections import Counter as cc
from math import factorial as f
from bisect import bisect as bs
from bisect import bisect_left as bsl
from itertools import accumulate as ac
from itertools import permutations as permu

def lcd(xnum1, xnum2):
	return xnum1 * xnum2 // gcd(xnum1, xnum2)

def prime(x):
	p = ceil(x ** 0.5) + 1
	for i in range(2, p):
		if x % i == 0 and x != 2 or x == 0:
			return 0
	return 1

def dfs(u, visit, graph):
	visit[u] = True
	for i in graph[u]:
		if not visit[i]:
			dfs(i, visit, graph)
z()
l = z()
a = l.count('A')
d = l.count('D')
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


def anton_danik(games):
	friends = {'A': 0, 'D': 0}
	for i in games:
		if i == 'A':
			friends['A'] += 1
		elif i == 'D':
			friends['D'] += 1
	if friends['A'] > friends['D']:
		return 'Anton'
	elif friends['A'] < friends['D']:
		return 'Danik'
	else:
		return 'Friendship'
_ = int(input())
games = input()
print(anton_danik(games))


n = int(input())
s = input()
(i, j) = (0, 0)
for k in s:
	if k == 'A':
		i += 1
	if k == 'D':
		j += 1
if i == j:
	print('Friendship')
else:
	print(('Anton', 'Danik')[i < j])


x = int(input())
s = input()
count1 = 0
count2 = 0
for p in s:
	if p == 'A':
		count1 = count1 + 1
	elif p == 'D':
		count2 = count2 + 1
if count1 == count2:
	print('Friendship')
elif count2 < count1:
	print('Anton')
else:
	print('Danik')


def check_winner(s):
	a = s.count('A')
	b = s.count('D')
	if a == b:
		return 'Friendship'
	if a > b:
		return 'Anton'
	return 'Danik'
n = int(input())
s = input()
print(check_winner(s))


Y = int(input())
z = 'Yes'
x = list(input())
i = 0
anton = 0
danik = 0
while i < Y:
	if x[i] == 'A' or x[i] == 'D':
		if x[i] == 'A':
			anton += 1
			i += 1
		else:
			danik += 1
			i += 1
	else:
		z = 'No'
		break
if z == 'Yes':
	if anton > danik:
		print('Anton')
	elif danik > anton:
		print('Danik')
	else:
		print('Friendship')


y = input()
x = input()
anton = x.count('A')
darik = x.count('D')
if anton > darik:
	print('Anton')
elif darik > anton:
	print('Danik')
else:
	print('Friendship')


def solve(n, s):
	a = 0
	n = len(s)
	for i in s:
		if i == 'A':
			a += 1
	if a > n - a:
		return 'Anton'
	elif a == n - a:
		return 'Friendship'
	else:
		return 'Danik'
n = int(input())
s = input()
print(solve(n, s))


n = int(input())
gs = input()
aCount = 0
dCount = 0
for g in gs:
	if g == 'A':
		aCount += 1
	elif g == 'D':
		dCount += 1
if aCount > dCount:
	print('Anton')
elif aCount == dCount:
	print('Friendship')
else:
	print('Danik')


input()
string = input()
count1 = 0
count2 = 0
for c in string:
	if c == 'A':
		count1 += 1
	else:
		count2 += 1
if count1 > count2:
	print('Anton')
elif count1 < count2:
	print('Danik')
else:
	print('Friendship')


I = lambda : map(int, input().split())
n = int(input())
s = input()
i = 0
for c in s:
	if c == 'A':
		i += 1
if i == n / 2:
	print('Friendship')
elif i > n / 2:
	print('Anton')
else:
	print('Danik')


def main():
	n = int(input())
	a = input().count('A')
	d = n - a
	print('Anton' if a > d else 'Danik' if a < d else 'Friendship')
main()


input()
s = input()
if s.count('A') > len(s) / 2:
	print('Anton')
elif s.count('D') > len(s) / 2:
	print('Danik')
elif s.count('A') == len(s) / 2:
	print('Friendship')


num = input()
name = input()
if name.count('A') > name.count('D'):
	print('Anton')
if name.count('A') == name.count('D'):
	print('Friendship')
if name.count('D') > name.count('A'):
	print('Danik')


import sys
games = []
idx = 0
for line in sys.stdin:
	if idx == 1:
		for i in line.strip():
			games.append(i)
		break
	else:
		idx += 1
tot = [0, 0]
for i in games:
	if i == 'A':
		tot[0] += 1
	else:
		tot[1] += 1
if tot[0] > tot[1]:
	print('Anton')
elif tot[0] == tot[1]:
	print('Friendship')
else:
	print('Danik')


roundN = input()
scoreT = input()
(anton, danik) = (0, 0)
for i in scoreT:
	if i == 'A':
		anton += 1
	else:
		danik += 1
if anton < danik:
	print('Danik')
elif danik < anton:
	print('Anton')
else:
	print('Friendship')


lines = []
while True:
	try:
		lines.append(input())
	except EOFError:
		break
sequence = lines[1]
anton = sequence.count('A')
danik = sequence.count('D')
if anton > danik:
	print('Anton')
elif anton < danik:
	print('Danik')
else:
	print('Friendship')


n = int(input())
aaa = input()
aa = bb = 0
for i in range(len(aaa)):
	if aaa[i] == 'A':
		aa = aa + 1
	else:
		bb = bb + 1
if aa > bb:
	print('Anton')
elif aa == bb:
	print('Friendship')
else:
	print('Danik')


n = int(input())
k = str(input()).upper()
x = sum([1 if k[i] == 'D' else 0 for i in range(len(k))])
if x / len(k) < 0.5:
	print('Anton')
elif x / len(k) > 0.5:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
u = s.upper()
c1 = 0
c2 = 0
for i in range(0, n):
	if u[i] == 'A':
		c1 = c1 + 1
	elif u[i] == 'D':
		c2 = c2 + 1
if c1 > c2:
	print('Anton')
elif c1 < c2:
	print('Danik')
else:
	print('Friendship')


a = int(input())
str_a = input()
cnt_A = str_a.count('A')
cnt_D = str_a.count('D')
if cnt_A == cnt_D:
	print('Friendship')
elif cnt_A > cnt_D:
	print('Anton')
else:
	print('Danik')


from sys import stdin, exit
a = int(stdin.readline().rstrip())
s = stdin.readline().rstrip()
t = 0
for char in s:
	if char == 'A':
		t += 1
	else:
		t -= 1
if t == 0:
	print('Friendship')
elif t > 0:
	print('Anton')
else:
	print('Danik')


a = int(input())
b = input()
Anton = 0
Danik = 0
for i in b:
	if i == 'A':
		Anton += 1
	if i == 'D':
		Danik += 1
if Anton > Danik:
	print('Anton')
if Danik > Anton:
	print('Danik')
if Anton == Danik:
	print('Friendship')


input()
table = input()
a = table.count('A') - 0.5 * len(table)
if a > 0:
	print('Anton')
elif a == 0:
	print('Friendship')
else:
	print('Danik')


a = map(int, input().split())
b = input()
if b.count('A') > b.count('D'):
	print('Anton')
elif b.count('A') < b.count('D'):
	print('Danik')
else:
	print('Friendship')


a = int(input())
c = input()
pa = c.count('A')
pd = a - pa
if pa == pd:
	print('Friendship')
elif pa > pd:
	print('Anton')
else:
	print('Danik')


num = int(input())
game = input()
anot = 0
danik = 0
for ch in game:
	if ch == 'A':
		anot += 1
	else:
		danik += 1
if anot > danik:
	print('Anton')
elif danik > anot:
	print('Danik')
else:
	print('Friendship')


l = int(input())
n = input()
count_1 = 0
count_2 = 0
for i in n:
	if i == 'D':
		count_1 += 1
	if i == 'A':
		count_2 += 1
if count_2 < count_1:
	print('Danik')
elif count_1 < count_2:
	print('Anton')
else:
	print('Friendship')


def func():
	n = int(input())
	(a, d) = (0, 0)
	s = input()
	for c in s:
		if c == 'A':
			a += 1
		else:
			d += 1
		if a > n / 2:
			print('Anton')
			return
		elif d > n / 2:
			print('Danik')
			return
	print('Friendship')
func()


a = input()
b = input()
print('Anton' if b.count('A') > b.count('D') else '', end='')
print('Danik' if b.count('A') < b.count('D') else '', end='')
print('Friendship' if b.count('A') == b.count('D') else '', end='')


def calculatesResult(outcomeEachGame, n):
	wordToLetters = [word for word in outcomeEachGame]
	a = 0
	d = 0
	for i in wordToLetters:
		if i == 'A':
			a += 1
		elif i == 'D':
			d += 1
	if a > d:
		return 'Anton'
	if a == d:
		return 'Friendship'
	return 'Danik'
numberOfMatches = int(input())
outcomeEachGame = input()
result = calculatesResult(outcomeEachGame, numberOfMatches)
print(result)


n = int(input())
s = list(input())
aCount = 0
dCount = 0
for i in range(n):
	if s[i] == 'A':
		aCount += 1
	elif s[i] == 'D':
		dCount += 1
if aCount > dCount:
	print('Anton')
elif aCount < dCount:
	print('Danik')
else:
	print('Friendship')


dig = int(input())
string = input()
As = string.count('A')
Ds = string.count('D')
if As > Ds:
	print('Anton')
elif Ds > As:
	print('Danik')
else:
	print('Friendship')


import re
n = int(input())
string = input()
d = len(re.findall('D', string))
a = len(re.findall('A', string))
if a > d:
	print('Anton')
elif d > a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
l = input()
Ant = 0
Dan = 0
Dan = l.count('D')
Ant = l.count('A')
if Dan < Ant:
	print('Anton')
elif Dan > Ant:
	print('Danik')
else:
	print('Friendship')


import sys
from collections import Counter

def readlines(type=int):
	return list(map(type, sys.stdin.readline().split()))

def read(type=int):
	return type(sys.stdin.readline().strip())
joint = lambda it, sep=' ': sep.join([str(i) if type(i) != list else sep.join(map(str, i)) for i in it])

def solve(wins):
	counts = Counter(wins)
	if counts['A'] > counts['D']:
		return 'Anton'
	if counts['A'] < counts['D']:
		return 'Danik'
	return 'Friendship'

def main():
	n = read()
	print(solve(read(str)))
main()


n = int(input())
s = input()
a = []
while s > ' ':
	a.append(s[0])
	s = s[1:]
A = a.count('A')
D = a.count('D')
if A > D:
	print('Anton')
elif A < D:
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input()
s_a = 0
s_d = 0
for i in s:
	if i == 'A':
		s_a = s_a + 1
	elif i == 'D':
		s_d = s_d + 1
if s_a > s_d:
	print('Anton')
elif s_d > s_a:
	print('Danik')
else:
	print('Friendship')


n = int(input())
m = n / 2
results = input()
dan = 0
ant = 0
friendship = True
for i in range(0, n):
	if results[i] == 'D':
		dan += 1
	else:
		ant += 1
	if dan > m:
		print('Danik')
		friendship = False
		break
	if ant > m:
		print('Anton')
		friendship = False
		break
if friendship:
	print('Friendship')


n = int(input())
games = str(input())
d = 0
a = 0
for i in range(n):
	parcial = games[i]
	if parcial == 'D':
		d += 1
	elif parcial == 'A':
		a += 1
if d < a:
	print('Anton')
elif d == a:
	print('Friendship')
elif d > a:
	print('Danik')


n = int(input())
str1 = input()
ar = [i for i in str1]
a = 0
b = 0
for i in range(len(ar)):
	if ar[i] == 'A':
		a += 1
	else:
		b += 1
if a > b:
	print('Anton')
elif b > a:
	print('Danik')
else:
	print('Friendship')


def game(mystr):
	a = mystr.count('A')
	b = mystr.count('D')
	if a > b:
		return 'Anton'
	elif a == b:
		return 'Friendship'
	else:
		return 'Danik'
x = int(input())
ip = str(input())
print(game(ip))


n = int(input())
games = str(input())
(d, a) = (0, 0)
for game in games:
	if game == 'A':
		a += 1
	else:
		d += 1
if d > a:
	print('Danik')
elif d < a:
	print('Anton')
else:
	print('Friendship')


n = int(input())
arr = list(input())
c = 0
d = 0
for i in arr:
	if i == 'A':
		c += 1
	else:
		d += 1
if c > d:
	print('Anton')
elif c == d:
	print('Friendship')
else:
	print('Danik')


n = int(input())
a = input()
q = a.count('A')
w = a.count('D')
print('Anton' if q > w else 'Danik' if w > q else 'Friendship')


def winner(s, n):
	tem = [i for i in s if i == 'A']
	(l, m) = (len(tem), n - len(tem))
	return 'Anton' if l > m else 'Danik' if l < m else 'Friendship'
(n, s) = (int(input()), input())
print(winner(s, len(s)))


n = int(input())
C = input()
a = 0
d = 0
for i in range(n):
	a += int(C[i] == 'A')
	d += int(C[i] == 'D')
if a > d:
	print('Anton')
elif a < d:
	print('Danik')
else:
	print('Friendship')


qtd = int(input())
entrada = input()
a = entrada.count('A')
d = entrada.count('D')
if a == d:
	print('Friendship')
elif a > d:
	print('Anton')
else:
	print('Danik')


n = int(input())
wins = input()
score = [i for i in wins]
if score.count('D') > score.count('A'):
	print('Danik')
elif score.count('D') < score.count('A'):
	print('Anton')
else:
	print('Friendship')


def function(n, s):
	anton = 0
	danik = 0
	for i in range(n):
		if s[i] == 'A':
			anton += 1
		else:
			danik += 1
	if anton > danik:
		return 'Anton'
	elif danik > anton:
		return 'Danik'
	else:
		return 'Friendship'
n = input()
s = input()
n = int(n)
s = str(s)
print(function(n, s))


n = input()
s = input()
a = s.count('A')
if a > len(s) - a:
	print('Anton')
elif a < len(s) - a:
	print('Danik')
else:
	print('Friendship')


a = int(input())
s = input()
b = len(s)
if a == b:
	c = s.count('A')
	d = s.count('D')
	if c < d:
		print('Danik')
	elif c > d:
		print('Anton')
	else:
		print('Friendship')


n = int(input())
string = input()
count1 = 0
count2 = 0
for i in range(len(string)):
	if string[i] == 'A':
		count1 = count1 + 1
	else:
		count2 = count2 + 1
if count2 > count1:
	print('Danik')
elif count1 > count2:
	print('Anton')
else:
	print('Friendship')


def solve(n, s):
	count1 = count2 = 0
	for i in range(0, n):
		if s[i] == 'D':
			count1 += 1
		if s[i] == 'A':
			count2 += 1
	if count1 == count2:
		return 'Friendship'
	elif count1 > count2:
		return 'Danik'
	else:
		return 'Anton'
n = int(input())
s = input()
print(solve(n, s))


def winner(s):
	if s.count('A') > s.count('D'):
		return 'Anton'
	elif s.count('D') > s.count('A'):
		return 'Danik'
	return 'Friendship'
n = int(input())
print(winner(input()))


import re
n = int(input())
games = input()
x = re.findall('A', games)
y = re.findall('D', games)
if len(x) > len(y):
	print('Anton')
elif len(x) < len(y):
	print('Danik')
else:
	print('Friendship')


n = int(input())
s = input().strip()
aw = 0
dw = 0
draw = True
for x in s:
	if x == 'A':
		aw = aw + 1
	else:
		dw = dw + 1
	if 2 * aw > n:
		draw = False
		print('Anton')
		break
	elif 2 * dw > n:
		draw = False
		print('Danik')
		break
if draw == True:
	print('Friendship')


n = int(input())
games = input()
games = list(games)
counter_a = 0
counter_b = 0
for i in games:
	if i == 'A':
		counter_a += 1
	elif i == 'D':
		counter_b += 1
if counter_a > counter_b:
	print('Anton')
elif counter_b > counter_a:
	print('Danik')
else:
	print('Friendship')


def solve():
	n = int(input())
	string = input()
	anton = 0
	danik = 0
	for i in range(len(string)):
		if string[i] == 'A':
			anton += 1
		if string[i] == 'D':
			danik += 1
	if anton > danik:
		print('Anton')
	elif danik > anton:
		print('Danik')
	else:
		print('Friendship')
solve()


num = int(input())
result_str = input()
result_list = list(result_str)
if result_list.count('A') > result_list.count('D'):
	print('Anton')
elif result_list.count('D') > result_list.count('A'):
	print('Danik')
else:
	print('Friendship')


n = int(input())
l = list(input())
anto = l.count('A')
dan = l.count('D')
if anto == dan:
	print('Friendship')
elif anto > dan:
	print('Anton')
elif dan > anto:
	print('Danik')


from collections import Counter
n = int(input())
s = list(input())
b = Counter(s)
c = {'A': 0, 'D': 0}
for (key, value) in b.items():
	c[key] = value
if c['A'] > c['D']:
	print('Anton')
elif c['A'] < c['D']:
	print('Danik')
else:
	print('Friendship')


n = int(input())
anton = sum((i == 'A' for i in input()))
print(['Danik', 'Friendship', 'Anton'][(anton * 2 > n) - (anton * 2 < n) + 1])


n = int(input().strip())
log = input().strip()
games_results = {'A': 0, 'D': 0}
for c in log:
	games_results[c] += 1
if games_results['A'] > games_results['D']:
	print('Anton')
elif games_results['D'] > games_results['A']:
	print('Danik')
else:
	print('Friendship')


n = int(input())
record = input()
anton = sum((1 for x in record if x == 'A'))
danik = len(record) - anton
if anton > danik:
	print('Anton')
elif danik > anton:
	print('Danik')
else:
	print('Friendship')


y = input()
n = int(y)
x = input()
a = ord('A')
d = ord('D')
aa = 0
dd = 0
for i in range(0, n, 1):
	kk = ord(x[i])
	if kk == a:
		aa = aa + 1
	if kk == d:
		dd = dd + 1
if aa > dd:
	print('Anton')
if aa < dd:
	print('Danik')
if aa == dd:
	print('Friendship')


n = int(input())
s = list(map(str, input()))
anton = 0
Dived = 0
for i in range(n):
	if s[i] == 'A':
		anton += 1
	elif s[i] == 'D':
		Dived += 1
	i += 1
if anton > Dived:
	print('Anton')
elif Dived > anton:
	print('Danik')
else:
	print('Friendship')


input()
r = input()
if r.count('A') == r.count('D'):
	print('Friendship')
else:
	print('Anton' if r.count('A') > r.count('D') else 'Danik')


n = int(input())
matches = list(input())
k = 0
for i in range(0, n):
	if matches[i] == 'A':
		k = k + 1
if k > n - k:
	print('Anton')
elif k < n - k:
	print('Danik')
elif k == n - k:
	print('Friendship')