''' import java.util.Scanner; ''' public class Input {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
String[] str = new String[num];
for(int i = 0;i<num;i++){
str[i] = sc.nextLine();
}
for(int x=0;x<num;x++){
System.out.println("A and "+str[x]);
}
}
} ''' Output: