#include
using namespace std;
#define M 1000
#define N 101
void main()
{
int T,i,j;
char str[M][N];
int count[M];
while(cin>>T)
{
getchar();
for(i=0;i{
count[i]=0;
gets(str[i]);
j=0;
while(str[i][j])
{
if(str[i][j]>='A' && str[i][j]<='Z')
count[i]++;
j++;
}
}
for(i=0;i{
cout<for(j=0;j cout<<"!";
cout<}
}
}