Codeforce734A Anton and Danik
#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++;