#include
struct stu
{
int num;
double score;
};
int main()
{
int n, k, flag;
struct stu a[105], t;
scanf_s("%d%d", &n, &k);
for (int i = 0; i < n; i++)
{
scanf_s("%d%lf", &a[i].num, &a[i].score);
}
for (int i = 1; i < n; i++)
{
flag = 1;
for (int j = 0; j < n - i; j++)
{