#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define REP(i,n) for(int i=0;i( \ ( std::ostringstream() << std::dec << x ) ).str() #define ALL(s) (s).begin(), (s).end() using namespace std; typedef long long unsigned int llu; typedef long long ll; int main (){ vector in; int A,B,C; while (cin >> A){ in.push_back(A); cin >> B; in.push_back(B); cin >> C; in.push_back(C); sort(ALL(in)); reverse(ALL(in)); REP(i,3){ if(in[i] == A){ cout << "A" << endl; }else if(in[i] == B){ cout << "B" << endl; }else{ cout << "C" << endl; } } in.clear(); } return 0; }