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