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: N = int(input())
  # S=input()
  S = ["#" for i in range(200000)]
  S[0] = "."
  S = "".join(S)
  cnt1 = 0
  cnt2 = 0
  for idx, s in enumerate(S):
      if s == "#" and idx < N - 1:
          cnt1 += 1
      if s == "." and N == 0:
          cnt2 += 1
  if cnt1 < cnt2:
      print(cnt1)
  else:
      print(cnt2)
  
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"}]