#include <iostream>
#include <queue> 
using namespace std;

int main() {
    priority_queue<int> pq;
    pq.push(5);
    pq.push(30); // 삽입
    pq.push(10);
    pq.push(20);
    pq.push(11);
    printf("%d %d\n", pq.size(), pq.top());     
    
    while (!pq.empty()) {
        printf("%d ", pq.top());  // 가장 큰 데이터 확인
        pq.pop();                 // 가장 큰 데이터 삭제
    }
    printf("\n");
}