#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define REP(i,s,n) for(int i=(int)(s);i<(int)(n);i++) using namespace std; typedef long long int ll; typedef vector VI; typedef vector VL; typedef pair PI; const ll mod = 1e9 + 7; int main(void) { vector > pool; REP(i, 0, 3) { int h; cin >> h; pool.push_back(make_pair(-h, 'A' + i)); } sort(pool.begin(), pool.end()); REP(i, 0, 3) { cout << pool[i].second << endl; } }