package yukicoder; import java.util.*; public class P571 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); Triple[] ts = new Triple[3]; ts[0] = new Triple(sc.nextInt(), sc.nextInt(), 'A'); ts[1] = new Triple(sc.nextInt(), sc.nextInt(), 'B'); ts[2] = new Triple(sc.nextInt(), sc.nextInt(), 'C'); Arrays.sort(ts, new Comparator() { public int compare(Triple a, Triple b) { if(a.h != b.h) { return b.h - a.h; } else { return a.w - b.w; } } }); for(int i=0; i<3; i++) { System.out.println(ts[i].name); } } static class Triple { int h; int w; char name; Triple(int h, int w, char name) { this.h = h; this.w = w; this.name = name; } } // print static void print(String s) { System.out.println(s); } // union find lib // usage: // 最初にinitを呼ぶ // root: 直接は呼ばないで // unite: まとめる // same: グループ判定 static void init(int par[], int N) { for(int i=0; i=n-k+1; i--) { ans = (ans * i)%mod; } for(long i=k; 0