#include using namespace std; using ll = long long; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> name0; string power0; cin >> power0; ll L0 = power0.size(); char c; cin >> c; string name1; cin >> name1; string power1; cin >> power1; ll L1 = power1.size(); cin >> c; if(L0>L1){ p(name0); }else if(L0