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