#include #include using namespace std; int max2(int x, int y) { return x > y ? x : y; } int max3(int x, int y, int z) { x = max2(x, y); return max2(x, z); } int min2(int x, int y) { return x < y ? x : y; } int min3(int x, int y, int z) { x = min2(x, y); return min2(x, z); } int main() { int a, b, c; cin >> a; cin >> b; cin >> c; int heighest = max3(a, b, c); int shortest = min3(a, b, c);; cout << (heighest == a ? "A" : (heighest == b ? "B" : "C")) << "\n"; cout << ((heighest != a && shortest != a) ? "A" : ((heighest != b && shortest != b) ? "B" : "C")) << "\n"; cout << (shortest == a ? "A" : (shortest == b ? "B" : "C")) << "\n"; cin >> a; return 0; }