#include #include #include #include using namespace std; using TUP = tuple; int main() { int h, w; vector people(3); for (int i = 0; i < 3; i++) { cin >> h >> w; people[i] = make_tuple(-h, w, 'A' + i); } sort(people.begin(), people.end()); for (auto x: people) { cout << get<2>(x) << endl; } return 0; }