stringi = input()

a, d = 0, 0

for i in range(0, len(stringi)):
    if stringi[i]== 'A':
        a += 1
    else:
        d += 1

if a>d:
    print("Anton")
elif d>a:
    print("Danik")
else: 
    print("Friendship")

