output_description: If there is an integer C between 1 and 3 that satisfies the condition, print
  `Yes`; otherwise, print `No`.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A B
attempt: (H, W) = map(int, input().split())
  a = []
  for i in range(H):
      a.append(list(map(int, input().split())))
  # print("a: ")
  # print(a)
  
  odd_flag = []
  for i in range(len(a)):
      odd_flag.append(list())
      for j in range(len(a[i])):
          if a[i][j] % 2 != 0:
              odd_flag[i].append(True)
          else:
              odd_flag[i].append(False)
  # print("odd_flag: ")
  # print(odd_flag)
  
  odd_sum = 0
  for i in range(len(odd_flag)):
      odd_sum += odd_flag[i].count(True)
  # print(odd_sum)
  
  s_h = 0
  s_w = 0
  move_flag = False
  
  
  def move(h, w):
      if h % 2 == 0:
          if w == W - 1:
              return (h + 1, w)
          else:
              return (h, w + 1)
      else:
          if w == 0:
              return (h + 1, w)
          else:
              return (h, w - 1)
  
  
  N = 0
  ans = ""
  while odd_sum >= 2:
      # 移動先到着
      if move_flag is True and odd_flag[s_h][s_w] is True:
          move_flag = False
          (s_h, s_w) = move(s_h, s_w)
          odd_sum -= 2
          N += 1
      # 移動中
      elif move_flag is True and odd_flag[s_h][s_w] is False:
          ans += str(s_h + 1) + " " + str(s_w + 1) + " "
          (s_h, s_w) = move(s_h, s_w)
          ans += str(s_h + 1) + " " + str(s_w + 1) + "\n"
      # 移動すべきものなし
      elif move_flag is False and odd_flag[s_h][s_w] is False:
          (s_h, s_w) = move(s_h, s_w)
      # 移動元到着
      elif move_flag is False and odd_flag[s_h][s_w] is True:
          move_flag = True
          ans += str(s_h + 1) + " " + str(s_w + 1) + " "
          (s_h, s_w) = move(s_h, s_w)
          ans += str(s_h + 1) + " " + str(s_w + 1) + "\n"
  
  print(N)
  # print(ans[0:-1])
  
problem_description: Statement
  
  You are given integers A and B, each between 1 and 3 (inclusive).
  
  Determine if there is an integer C between 1 and 3 (inclusive) such that A
  \times B \times C is an odd number.
samples: [{"input": "3 1", "output": "Yes\n    \n\nLet C = 3. Then, A \\times B \\times C = 3 \\times 1 \\times 3 = 9, which is an\nodd number.\n\n* * *"}, {"input": "1 2", "output": "No\n    \n\n* * *"}, {"input": "2 2", "output": "No"}]