#include <iostream>
#include <cstring>
using namespace std;
struct object {
char name[20];
int pri;
};
int main() {
object* o = new object[3];
char found[20];
for (int i = 0;i < 3;i++) {
cin >> o[i].name >> o[i].pri;
}
int maxIdx = 0;
for (int i = 1; i < 3; i++) {
if (o[i].pri > o[maxIdx].pri){
maxIdx = i;
}
}
cout << o[maxIdx].name << endl;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: