#include #include using namespace std; int main() { priority_queue>pq; pairp; cin >> p.first; p.second = 'A'; pq.push(p); cin >> p.first; p.second = 'B'; pq.push(p); cin >> p.first; 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; }