a, b, c = map(int, input().split()) X = (a * b + b * c + c * a) * 2 Y = a * b * c if Y < X: print(2) else: print(3)