output_description: Print `Yes` if we pass the coordinate of House 3 on the straight way from
  House 1 to House 2 without making a detour, and print `No` otherwise.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A B C
attempt: # 左端が黒 - > すべての黒を白にするかすべての白を黒にしなくちゃいけない（反転は2倍ひっくりかえさなければいけないぶん意味がない）
  # 左端が白 -> 左端から連続する白を除いたところ以降の白を全て黒にするか、黒をすべて白にするか、あるいは左端を含む白をすべて黒にする
  n = int(input())
  s = input() + "髭"
  arr = []
  l, r = 0, 0
  while l < n:
      while r < n + 1 and s[r] == s[l]:
          r += 1
      arr.append(r - l)
      l = r
  ruiseki = [0]
  for a in arr:
      ruiseki.append(ruiseki[-1] + a)
  if s[0] == "#":
      ans = min(s.count("#"), s.count("."))
      print(ans)
  else:
      h = 0
      if s[-2] == "#":
          h = arr[-1]
      ans = min(s[ruiseki[1] :].count("#") - h, s[ruiseki[1] :].count("."), s.count("."))
      print(ans)
  
problem_description: Statement
  
  There are three houses on a number line: House 1, 2 and 3, with coordinates A,
  B and C, respectively. Print `Yes` if we pass the coordinate of House 3 on the
  straight way from House 1 to House 2 without making a detour, and print `No`
  otherwise.
samples: [{"input": "3 8 5", "output": "Yes\n    \n\nWe pass the coordinate 5 on the straight way from the house at coordinate 3 to\nthe house at coordinate 8.\n\n* * *"}, {"input": "7 3 1", "output": "No\n    \n\n* * *"}, {"input": "10 2 4", "output": "Yes\n    \n\n* * *"}, {"input": "31 41 59", "output": "No"}]