#include<iostream> using namespace std; int main() { long long b,n,t,p,samia=0,rafi=0,i; char a; cin>>n; for(i=0; i<n; i++) { cin>>a; if(a=='A') { samia++; } if(a=='D') { rafi++; } } if(samia>rafi) { cout<<"Anton"<<endl; } if(rafi>samia) { cout<<"Danik"<<endl; } if(rafi==samia) { cout<<"Friendship"<<endl; } return 0; }