import std.algorithm, std.conv, std.range, std.stdio, std.string;
import std.container; // SList, DList, BinaryHeap
import std.typecons;  // Tuple, Nullable, BigFlags
import std.math;      // math functions
import std.numeric;   // gcd, fft
import std.bigint;    // BigInt
import std.random;    // random
import std.bitmanip;  // BitArray
import core.bitop;    // bit operation
import std.regex;     // RegEx
import std.uni;       // unicode

void main()
{
  auto h = iota(3).map!(_ => readln.chomp.to!int).array;
  struct HI { int i; char j; }
  auto hi = new HI[](h.length);
  foreach (i; 0..h.length) hi[i] = HI(h[i], cast(char)(i + 'A'));
  hi.sort!"a.i > b.i"();
  foreach (hii; hi) writeln(hii.j);
}