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