#include using namespace std; int main() { vector> s(3); for (char a = 'A'; a <= 'C'; a++) { cin >> s[a-'A'].first; s[a-'A'].second = a; } sort(s.rbegin(), s.rend()); for (const auto &e : s) cout << e.second << endl; return 0; }