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