#include<iostream>

using namespace std;

int main(){
  int n;
  cin >> n;
  while(n-- > 0)
    {
      string s;
      cin >> s;
      cerr << s << endl;
      cout << "A" << endl;
    }


  return 0;
}