#include using namespace std; int main() { int a, b, c; cin >> a, b, c; if (a < b < c) { cout << "C" << "B" << "A" << endl; }else if (b < a < c) { cout << "C" << "A" << "B" << endl; }else if (b < c < a) { cout << "A" << "C" << "B" << endl; }else if (a < c < b) { cout << "B" << "C" << "A" << endl; }else if (c < a < b) { cout << "B" << "A" << "C" << endl; }else if (c < b < a) { cout << "A" << "B" << "C" << endl; } return 0; }