1. def Anton_and_Danik(string):
  2. A = ''
  3. D = ''
  4. for ch in string:
  5. if ch == 'A':
  6. A += ch
  7. else:
  8. D += ch
  9. if len(A) == len(D):
  10. print('Friendship')

  11. elif len(A) > len(D):
  12. print('Anton')
  13. else:
  14. print('Danik')

  15. if __name__ == '__main__':
  16. s_size = int(input())
  17. string = input()
  18. Anton_and_Danik(string)


  19. #2nd Rules
  20. def Anton_and_Danik(string):
  21. A = string.count('A')
  22. D = string.count('D')

  23. if A == D:
  24. print('Friendship')

  25. elif A > D:
  26. print('Anton')
  27. else:
  28. print('Danik')


  29. if __name__ == '__main__':
  30. s_size = int(input())
  31. string = input()
  32. Anton_and_Danik(string)