a, b, c = map(int, input().split())
x = 2 * (a * b + b * c + c * a)
y = a * b * c
ans = 2 + (x <= y)
print(ans)