a, b, c = map(int, input().split()) x = (a * b + a * c + b * c) * 2 y = a * b * c if x > y: print(2) else: print(3)