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