A, B, C = [int(x) for x in input().split()] X = A * B + B * C + C * A X *= 2 Y = A * B * C print(2 + (X > Y))