#include<stdio.h>
int main()
{
char A,B,C;
for(A='X';A<='Z';A++)
for(B='X';B<='Z';B++)
for(C='X';C<='Z';C++)
if(A!='X'&&C!='X'&&C!='Z'&&A!=B&&B!=C&&A!=C)
printf("A\t%c\nB\t%c\nC\t%c\n",A,B,C);
return 0;
}
#include<stdio.h>
int main()
{
char A,B,C;
for(A='X';A<='Z';A++)
for(B='X';B<='Z';B++)
for(C='X';C<='Z';C++)
if(A!='X'&&C!='X'&&C!='Z'&&A!=B&&B!=C&&A!=C)
printf("A\t%c\nB\t%c\nC\t%c\n",A,B,C);
return 0;
}