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