#include <bits/stdc++.h>
using namespace std;
struct st
{
	int a;
	int b;
	int c;
};
bool operator>(st a,st b)
{
	return a.a>b.a;
}
int main()
{
	st x,y;
	x.a=1,x.b=3,x.c=5;
	y.a=3,y.b=4,y.c=1;
	priority_queue<st,vector<st>,greater<st>> pq;
	pq.push(x);
	pq.push(y);
	while (!pq.empty())
		{
			st v=pq.top();
			cout<<v.a<<endl;
			pq.pop();
		}
	
}