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)

cfc821f584e2cdad1333d3b352915c368662aee9
<mask token>

<mask token>


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')


<mask token>

<mask token>


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)

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)

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)
