A, B, C = map(int, input().split())

surface_area = 2 * (A * B + B * C + A * C)
volume = A * B * C

if surface_area > volume:
    print(2)
else:
    print(3)