a, b, c = [int(x) for x in input().split()] x = (a * b + b * c + c * a) * 2 y = a * b * c print(2 if x > y else 3)