#include #include #include #include #include int main(void) { int height[3]={0}; int weight[3]={0}; int rank[3]={0,1,2}; scanf("%d %d",&height[0],&weight[0]); scanf("%d %d",&height[1],&weight[1]); scanf("%d %d",&height[2],&weight[2]); for(int i=0;i<2;i++) { for(int j=i+1;j<3;j++) { if(height[i]weight[j]) { int tmp=rank[i]; rank[i]=rank[j]; rank[j]=tmp; } } } } for(int i=0;i<3;i++) { if(rank[i]==0) { printf("A"); } else if (rank[i]==1) { printf("B"); } else { printf("C"); } printf("\n"); } }