#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main() { vector > height_weight; pair a; pair b; pair c; int first = 0; int second = 0; int mozi[301]; cin >> first >> second; a = make_pair(first, second); mozi[a.first+a.second] = 0; cin >> first >> second; b = make_pair(first, second); mozi[b.first+b.second] = 1; cin >> first >> second; c = make_pair(first, second); mozi[c.first+c.second] = 2; height_weight.push_back(a); height_weight.push_back(b); height_weight.push_back(c); sort(height_weight.begin(), height_weight.end(), greater >()); if (height_weight[0].first == height_weight[1].first) { if (height_weight[0].second > height_weight[1].second) { if (mozi[height_weight[1].first+height_weight[1].second] == 0) { cout << "A" << endl; } else if (mozi[height_weight[1].first+height_weight[1].second] == 1) { cout << "B" << endl; } else { cout << "C" << endl; } } else { if (mozi[height_weight[0].first+height_weight[0].second] == 0) { cout << "A" << endl; } else if (mozi[height_weight[0].first+height_weight[0].second] == 1) { cout << "B" << endl; } else { cout << "C" << endl; } } } else { if (mozi[height_weight[0].first+height_weight[0].second] == 0) { cout << "A" << endl; } else if (mozi[height_weight[0].first+height_weight[0].second] == 1) { cout << "B" << endl; } else { cout << "C" << endl; } } if (height_weight[1].first == height_weight[2].first) { if (height_weight[1].second > height_weight[2].second) { if (mozi[height_weight[2].first+height_weight[2].second] == 0) { cout << "A" << endl; } else if (mozi[height_weight[2].first+height_weight[2].second] == 1) { cout << "B" << endl; } else { cout << "C" << endl; } if (mozi[height_weight[1].first+height_weight[1].second] == 0) { cout << "A" << endl; } else if (mozi[height_weight[1].first+height_weight[1].second] == 1) { cout << "B" << endl; } else { cout << "C" << endl; } } else { if (mozi[height_weight[1].first+height_weight[1].second] == 0) { cout << "A" << endl; } else if (mozi[height_weight[1].first+height_weight[1].second] == 1) { cout << "B" << endl; } else { cout << "C" << endl; } if (mozi[height_weight[2].first+height_weight[2].second] == 0) { cout << "A" << endl; } else if (mozi[height_weight[2].first+height_weight[2].second] == 1) { cout << "B" << endl; } else { cout << "C" << endl; } } } else { if (mozi[height_weight[1].first+height_weight[1].second] == 0) { cout << "A" << endl; } else if (mozi[height_weight[1].first+height_weight[1].second] == 1) { cout << "B" << endl; } else { cout << "C" << endl; } if (mozi[height_weight[2].first+height_weight[2].second] == 0) { cout << "A" << endl; } else if (mozi[height_weight[2].first+height_weight[2].second] == 1) { cout << "B" << endl; } else { cout << "C" << endl; } } return 0; }