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