text: #include<cstdio>
  #include<algorithm>
  #include<cstring>
  #include<iostream>
  #include<vector>
  #include<queue>
  #include<cmath>
  #include<map>
  #include<set>
  #include<sstream>
  #define ll long long
  #define F(i,a,b) for(int i=(a);i<=(b);i++)
  #define mst(a,b) memset((a),(b),sizeof(a))
  #define PII pair<int,int>
  using namespace std;
  template<class T>inline void read(T &x) {
      x=0; int ch=getchar(),f=0;
      while(ch<'0'||ch>'9'){if (ch=='-') f=1;ch=getchar();}
      while (ch>='0'&&ch<='9'){x=(x<<1)+(x<<3)+(ch^48);ch=getchar();}
      if(f)x=-x;
  }
  const int inf=0x3f3f3f3f;
  int T,num;
  string s,t[1050];
  int main()
  {
  	cin>>T;getchar();
  	while(T--)
  	{
  		getline(cin,s);
  		num=0;
  		stringstream sin(s);
  		string x;
  		while(sin>>x)
  		{
  			t[++num]=x;
  		}
  		cout<<s<<endl;
  		cout<<"AI: ";
  		for(int i=1;i<=num;i++)
  		{
  			
  		}
  	}
  	return 0;
  }
  
  