#include #include #include #include #include #include #include #include #include #include #include #define rep(i,n) for(int i=0;i=0;i--) #define FOR(i,a,b) for(int i=a;i>a>>a1>>b>>b1>>c>>c1; a+=1-a1*0.001; b+=1-b1*0.001; c+=1-c1*0.001; if(a>b&&b>c){ cout<<"A"<c&&c>b){ cout<<"A"<c&&c>a){ cout<<"B"<a&&a>c){ cout<<"B"<b){ cout<<"C"<