A,B,C=map(int,input().split()) print(min["A","B","C"])