A,B,C = map(int,input().split()) X = (A*B+B*C+A*C)*2 Y = A*B*C print("2" if X > Y else 3)