A=sorted(input().split()) B=set(A) if len(B)==2 and 1