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