#include #include using namespace std; int main() { priority_queue, char>>pq; pair, char>p; cin >> p.first.first >> p.first.second; p.first.second = 200 - p.first.second; p.second = 'A'; pq.push(p); cin >> p.first.first >> p.first.second; p.first.second = 200 - p.first.second; p.second = 'B'; pq.push(p); cin >> p.first.first >> p.first.second; p.first.second = 200 - p.first.second; p.second = 'C'; pq.push(p); cout << pq.top().second << endl; pq.pop(); cout << pq.top().second << endl; pq.pop(); cout << pq.top().second << endl; pq.pop(); return 0; }