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: stone = input()
  color = input()
  a = int(stone)
  counter = 0
  counter2 = 0
  black = 0
  white = 0
  xxx = []
  yyy = []
  list = []
  for i in range(a):
      list.append(color[i])
  for i in range(a):
      if list[i] == "#":
          xxx.append(i)
          black += 1
      if list[i] == ".":
          yyy.append(i)
          white += 1
  if white == 0 or black == 0:
      print("0")
  else:
      s = min(xxx)
      t = max(yyy)
      for k in range(s, a):
          if list[k] == ".":
              counter = 1 + counter
      for j in range(0, t):
          if list[j] == "#":
              counter2 = 1 + counter2
      if counter < counter2:
          print(counter)
      else:
          print(counter2)
  
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"}]