#include int main(void){ int ha, hb, hc; scanf("%d %d %d", &ha, &hb, &hc); if(ha>hb){ if(hb>hc){ printf("A\nB\nC\n"); } else if(ha>hc){ printf("A\nC\nB\n"); } else{ printf("C\nA\nB\n"); } }else{ if(ha>hc){ printf("B\nA\nC\n"); } else if(hb>hc){ printf("B\nC\nA\n"); } else{ printf("C\nB\nA\n"); } } return 0; }