#include using namespace std; typedef long long ll; typedef long double ld; #define rep(i,a,b) for(int i=a;i=b;i--) templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> x(3); int a,b,c;cin >> a >> b >> c; x[0]={a,'A'}; x[1]={b,'B'}; x[2]={c,'C'}; sort(x.begin(),x.end(),greater>()); rep(i,0,3) cout << x[i].second << endl; }