A, B, C = map(int, input().split()) X = A * B * 2 + B * C * 2 + A * C * 2 Y = A * B * C if X > Y: print(2) else: print(3)