#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
string s;
cin>>n>>s;
int c1=0;
int c2=0;
for(int i=0;i<s.length();i++){
if(s[i]=='A'){
c1++;
}
else
c2++;
}
if(c1>c2)
printf("Anton\n");
else if(c1==c2)
printf("Friendship\n");
else
printf("Danik\n");
}
Codeforce734A Anton and Danik
最新推荐文章于 2022-08-17 20:00:21 发布