output_description: Print the largest value among A+B, A-B and A \times B.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A B
attempt: N = int(input())
  A = list(map(int, input().split()))
  A2 = []
  Z = []
  ans = 0
  zerocnt = 0
  for ai in A:
      if ai == 0:
          zerocnt += 1
      elif zerocnt >= 1:
          A2 += [0]
          Z += [zerocnt]
          ans += (zerocnt * (zerocnt + 1)) // 2
          zerocnt = 0
      if ai != 0:
          A2 += [ai]
          Z += [1]
          ans += 1
  
  if zerocnt >= 1:
      A2 += [0]
      Z += [zerocnt]
      ans += (zerocnt * (zerocnt + 1)) // 2
      zerocnt = 0
  
  for i, ai in enumerate(A2):
      aixor = ai
      sumA = ai
      for j in range(i + 1, min(i + 41, len(A2))):
          aj = A2[j]
          aixor = aixor ^ aj
          sumA += aj
          if aixor != sumA:
              break
          else:
              ans += Z[i] * Z[j]
  
  print(ans)
  
problem_description: Statement
  
  You are given two integers A and B. Find the largest value among A+B, A-B and
  A \times B.
samples: [{"input": "3 1", "output": "4\n    \n\n3+1=4, 3-1=2 and 3 \\times 1=3. The largest among them is 4.\n\n* * *"}, {"input": "4 -2", "output": "6\n    \n\nThe largest is 4 - (-2) = 6.\n\n* * *"}, {"input": "0 0", "output": "0"}]