#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); pair a[3]; for(int i = 0; i < 3; i++) { int b; cin >> b; a[i] = make_pair(b, 'A' + i); } sort(a, a + 3); for(int i = 2; i >= 0; i--) { cout << a[i].second << '\n'; } return 0; }