output_description: If the product is odd, print `Odd`; if it is even, print `Even`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      a b
attempt: ri = lambda: int(input())
  rl = lambda: list(map(int, input().split()))
  rr = lambda N: [ri() for _ in range(N)]
  YN = lambda b: print("YES") if b else print("NO")
  INF = 10**18
  
  N, K = rl()
  
  W = [[0 for _ in range(2 * K + 3)] for _ in range(2 * K + 3)]
  for i in range(N):
      x, y, c = input().split()
      x = int(x) % (2 * K)
      y = (int(y) if c == "W" else int(y) + K) % (2 * K)
      if (x < K) ^ (y < K):
          x %= K
          y %= K
          W[0][y + 1] += 1
          W[x + 1][y + 1] -= 2
          W[0][K + 1] -= 1
          W[x + 1][K + 1] += 1
          W[x + 1][0] += 1
          W[K + 1][0] -= 1
          W[K + 1][y + 1] += 1
      else:
          x %= K
          y %= K
          W[0][0] += 1
          W[x + 1][0] -= 1
          W[0][y + 1] -= 1
          W[x + 1][y + 1] += 2
          W[K + 1][y + 1] -= 1
          W[x + 1][K + 1] -= 1
          W[K + 1][K + 1] += 1
  
  for x in range(0, K + 2):
      for y in range(1, K + 2):
          W[x][y] += W[x][y - 1]
  for y in range(0, K + 2):
      for x in range(1, K + 2):
          W[x][y] += W[x - 1][y]
  
  ans = 0
  for x in range(K + 1):
      for y in range(K + 1):
          ans = max(ans, W[x][y])
  
  print(ans)
  
problem_description: Statement
  
  AtCoDeer the deer found two positive integers, a and b. Determine whether the
  product of a and b is even or odd.
samples: [{"input": "3 4", "output": "Even\n    \n\nAs 3 \u00d7 4 = 12 is even, print `Even`.\n\n* * *"}, {"input": "1 21", "output": "Odd\n    \n\nAs 1 \u00d7 21 = 21 is odd, print `Odd`."}]