typedef int ll; typedef long double ld; #include using namespace std; // #define int long long signed main(){ ll n; std::cin >> n; string s; std::cin >> s; ll cnt = 0; for (auto e : s) { if(e=='A'||e=='G'||e=='C'||e=='T'){ cnt++; } } ll ans= 0; if(cnt==0){ std::cout << 0 << std::endl; return 0; } ll l,r; ll cur = cnt; l = r = cur-1; bool isr = true; while(cnt>0){ ans++; // std::cout << l<<" "<