#include #include using namespace std; int main(){ vector v; for(int i = 0; i < 3; i++){ int a; cin >> a; v.push_back(a); } if(v[1] > v[0] && v[0] > v[2]){ cout << "B" << endl; cout << "A" << endl; cout << "C" << endl; } if(v[2] > v[0] && v[0] > v[1]){ cout << "C" << endl; cout << "A" << endl; cout << "B" << endl; } if(v[1] > v[2] && v[2] > v[0]){ cout << "B" << endl; cout << "C" << endl; cout << "A" << endl; } if(v[0] > v[1] && v[1] > v[2]){ cout << "A" << endl; cout << "B" << endl; cout << "C" << endl; } if(v[0] > v[2] && v[2] > v[1]){ cout << "A" << endl; cout << "C" << endl; cout << "B" << endl; } if(v[2] > v[1] && v[1] > v[0]){ cout << "C" << endl; cout << "B" << endl; cout << "A" << endl; } return 0; }