#include #define rep(i,n) for (int i=0; i<(n); ++i) using namespace std; using ll=long long; int main(){ vector>h(3); string s="ABC"; rep(i,3){ int x; cin>>x; h.push_back({x,s[i]}); } sort(h.rbegin(),h.rend()); rep(i,3){ cout<