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