#include #include #include using namespace std; #define FOR(i, a, n) for (int i = a; i < n; i++) #define REP(i, n) for(int i = 0; i < n; i++) struct omt{omt(){ios::sync_with_stdio(false);cin.tie(0);}}star; int main(){ pair, char> A[3]; int h, w; REP(i, 3){ cin >> h >> w; h = 200 - h; A[i].first = make_pair(h, w); A[i].second = 'A' + i; } sort(A, A + 3); REP(i, 3){ cout << A[i].second << endl; } return 0; }