a, b, c = io.read("*n", "*n", "*n") x = 2 * (a * b + b * c + c * a) y = a * b * c if y < x then print(2) else print(3) end