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())
  S = list(input())
  
  reS = S[::-1]
  
  wSum = [0 for i in range(N)]
  eSum = [0 for i in range(N)]
  
  for i in range(N):
      if i == 0:
          if S[i] == "W":
              wSum[i] = 1
          if reS[i] == "E":
              eSum[i] = 1
      else:
          if S[i] == "W":
              wSum[i] = wSum[i - 1] + 1
          else:
              wSum[i] = wSum[i - 1]
          if reS[i] == "E":
              eSum[i] = eSum[i - 1] + 1
          else:
              eSum[i] = eSum[i - 1]
  
  eSum = eSum[::-1]
  
  cost = eSum[1]
  
  for i in range(1, N):
      if i == N - 1:
          if cost > wSum[N - 2]:
              cost = wSum[N - 2]
      else:
          if cost > wSum[i - 1] + eSum[i + 1]:
              cost = wSum[i - 1] + eSum[i + 1]
  print(cost)
  
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"}]