Problem:


Score : 100 points

Problem 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.

Constraints

0\leq A,B,C\leq 100

A, B and C are distinct integers.

Input

Input is given from Standard Input in the following format:

A B C

Output

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.

Sample Input 1

3 8 5

Sample Output 1

Yes

We pass the coordinate 5 on the straight way from the house at coordinate 3 to the house at coordinate 8.

Sample Input 2

7 3 1

Sample Output 2

No

Sample Input 3

10 2 4

Sample Output 3

Yes

Sample Input 4

31 41 59

Sample Output 4

No



Sample input:
3 8 5


Sample output:
Yes

Submission status: Wrong Answer

Solution code:
A,B, C = map(int,input().split())
if A<C <B:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if a >= b:
    tmp = b
    b = a
    a = tmp

if a<=c and c<=b:
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
a,b,c = map(int, input().split())

if a <= c and c <= b:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
vals = [int(i) for i in raw_input().split()]
print ("Yes" if vals[1] in (max(vals), min(vals)) else "No")

Submission status: Wrong Answer

Solution code:
input = input()
splited = input.split(" ")
a = splited[0]
b = splited[1]
c = splited[2]
if a <= c <= b:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if c>a:
    if b>c:
        print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
loot=list(map(int,input().split()))

if loot[0]<=loot[2]<=loot[1]:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
x,y,z = map(int,input().split())
if ((x <= z <= y)):
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
data = input()
pos_list = list(map(int, data.split()))

if abs(pos_list[0] - pos_list[1]) > abs(pos_list[0] - pos_list[2]):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = (int(i) for i in input().split())
if A < C < B:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if((a-b)*(b-c)<0):
    print("Yes")

else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if (a < c < b):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import sys
input=sys.stdin.readline
 
a,b,c=map(int,input().split())
if abs(a-c)<=abs(a-b):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a = input().split(" ")
h1 = int(a[0])
h2 = int(a[1])
h3 = int(a[2])
 
if h1 <= h3 and h3 <= h2:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
A,B,C= list(map(int,input().strip().split(" ")))

if A < C< B:
 print("Yes")
else:
 print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = [int(c) for c in input().split()]

print('No') if a < b < c or a > b > c else print('Yes')

Submission status: Wrong Answer

Solution code:
def Ways(a,b,c):
    if c>=a and c<=b:
        return 'Yes'
    else:
        return 'No'

a,b,c = map(int, input().split())
print(Ways(a,b,c))

Submission status: Wrong Answer

Solution code:
l = list(map(int, input().split(' ')))
if((l[0]<l[1] and l[2]<l[1]) or (l[0]>l[2] and l[2]>l[1])):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
inputs = list(map(int,input().split()))
if inputs[0] <= inputs[2] and inputs[2] <= inputs[1]:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())

if A > B:
    print("No")
    exit()

if A < C < B:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
abc=list(map(int,input().split()))
if max(abc)==abc[2]:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
import sys
a = []
for l in sys.stdin:
    a.append(l)

zahyou = [int(x) for x in a[0].split()]

if ((zahyou[0] >= zahyou[1]) and (zahyou[1] >= zahyou[2])) or ((zahyou[0] <= zahyou[1]) and (zahyou[1] <= zahyou[2])):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
A,B,C=map(int,input().split())
a=abs(A-B)
b=abs(A-C)
if (a>=b):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s = input().split(" ")
a = int(s[0])
b = int(s[1])
c = int(s[2])
ans = "No"
if a>b:
    if b>c:
        ans="No"
    else:
        ans="Yes"
else:
    if b<c:
        ans="No"
    else:
        ans="Yes"
    
print(ans)

Submission status: Wrong Answer

Solution code:
btn=input().split()
if btn[0] < btn[1] and btn[2] < btn[1]:
	print("Yes")
elif btn[0] > btn[1] and btn[2] > btn[1]:
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

Solution code:
import sys

A, B, C = map(int, sys.stdin.readline().split())

print(A)

if A < B:
    if B < C:
        print("No")
    else:
        print("Yes")
if A > B:
    if B > C:
        print("No")
    else:
        print("Yes")

Submission status: Wrong Answer

Solution code:
points = input()
points = points.split(" ")
a = int(points[0])
b = int(points[1])
c = int(points[2])

if (a < c) and (c < b) :
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
if A <= C and C <= B :
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A,B,C=map(int,input().split())
pr='Yes'
if (A-B)*(C-B)<=0:
    pr='No'
else:
    pass
print(pr)

Submission status: Wrong Answer

Solution code:
ABC = input()
list_ABC=list(ABC)
A = list_ABC[1]
B = list_ABC[2]
C = list_ABC[3]

if A < C and C < B:
    print('Yes')
elif B < C and C < A:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a, c, b = map(int, input().split())

if a < c:
    if a<b and b<c:
        print("No")
    else:
        print("Yes")
else:
    if c<b and b<a:
        print("No")
    else:
        print("Yes")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
if B - A >= C:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
if a < c and b < c or c < a and b < c:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if a<c<b or a>c>b:
    print('Yes')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

a, b, c = map(int, input().split())

if (b > a and b < c) or (b < a and b > c):
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
AB_list = [int(i) for i in range(A, B)]

print("Yes" if C in AB_list else "No")

Submission status: Wrong Answer

Solution code:
x,y,z = map(int,input().split())
 
if x <= z :
    if z <= y:
        print('Yes');
elif y <= z:
    if z <= x:
        print('Yes');
else:
    print('No');

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python

a, b, c = map(int,input().split())

if a <= c:
    if c <= b:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
pos = input().split()

if(pos[0] > pos[1]):
  if(pos[1] < pos[2]):
    if(pos[2] < pos[0]):
      print("Yes")
  else:
  	print("No")
else:
  if(pos[0] < pos[1]):
    if(pos[0] < pos[2]):
      if(pos[2] < pos[1]):
      	print("Yes")
  else:
  	print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if a < c and b < c:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
A, B, C = (int(i) for i in input().split())
 
if A > B and B> C:
    print("No")
if A < B and B < C:
    print("No")
if A < B and B > C:
    print("Yes")
if A > B and B < C:
    print("Yes")

Submission status: Wrong Answer

Solution code:
a = input()
b = a.split()
if int(b[0]) > int(b[1]):
    if int(b[1]) > int(b[2]):
        print('No')
    else:
        print('Yes')
else:
    if int(b[1]) > int(b[2]):
        print('Yes')
    else:
        print('No')

Submission status: Wrong Answer

Solution code:
a=list(map(int,input().split(" ")))
x=a[0]>a[1]
y=a[1]>a[2]
if x!=y:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a , b , c = map(int, input().split())
if b<=c and a>=c:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = [int(x) for x in input().split()]
if a < c < b:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
a,b,c = map(int, input().split())
l = [a,b,c]
if (min(l)==c)|(max(l)==c):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a,b,c = map(int, input().split())

if a < b:
    if b < c:
        print('Yes')
    else:
        print('No')
else:
    if b < c:
        print('Yes')
    else :
        print('No')

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if a <= c <= b:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
A, B, C = [int(n) for n in input().split()]

if (B-C) * (A-C) > 0:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if a >= b:
    tmp = a
    b = a
    a = tmp

if a<=c and c<=b:
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
xs = list(map(int,input().split(' ')))
print(xs)
if xs[0] < xs[1]:
  if xs[0] < xs[2] and xs[2] < xs[1]:
    print('Yes')
  else:
    print('No')
else:
  if xs[0] > xs[2] and xs[2] > xs[1]:
    print('Yes')
  else:
    print('No')

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
if a<c<b:
    print("Yes")
    exit()
elif b<a<c:
    print("Yes")
    exit()
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if (a<c)&(c<b):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = input().split()

if a < b:
  if a < c and c < b:
    print("Yes")
  else:
    print("No")
else:
  if b < c and c < a:
    print("Yes")
  else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b,c = list(map(int, input().split()))

result = 'Yes'
t = min(a,b)
if c > t :
    print(result)
else :
    result = 'No'
    print(result)

Submission status: Wrong Answer

Solution code:
A,B,C = map (int,input().split())
if A < C < B:
    print("YES")
elif A > C > B:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
n=input().split()
for i in range(3):
    n[i]=int(n[i])
if n[0]<n[2]<n[1]:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
#スペース入力
input = input().split()

a = int(input[0])
b = int(input[1])
c = int(input[2])

print(a)
print(b)
print(c)

if (c > a and c > b) or (c < a and c < b):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())

if A <= C <= B:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())

if C in list(range(A, B)) if A < B else list(range(B, A)):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if b-a>=c:
  print("Yes")
  
else:
  print("No")

Submission status: Wrong Answer

Solution code:
import sys

A, B, C = map(int, input().split())

if A < B:
    if B > C:
        print('Yes')
        sys.exit()
    print('No')
    sys.exit()

if A > B:
    if B < C:
        print('Yes')
        sys.exit()
    print('No')
    sys.exit()

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split(' '))

if b > c:
    print('yes')
else:
    print('no')

Submission status: Wrong Answer

Solution code:
A,B,C=map(int,input().split())
pr='Yes'
if (A-B)*(C-B)>=0:
    pr='No'
else:
    pass
print(pr)

Submission status: Wrong Answer

Solution code:
a_c = list(map(int, input().split()))

if a_c[0] < a_c[2] < a_c[1]:
    print("Yes")

else:
    print("No")

Submission status: Wrong Answer

Solution code:
import sys

inp = map(int, raw_input().strip().split(" "))

if inp[1] > inp[0] and inp[1] < inp[2]:
    print("No")
elif inp[1] > inp[2] and inp[1] < inp[0]:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())

if a < b and b < c:
    print('No')
elif a > b and b > c:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())

if c == min(a,b,c):
 print('No')
elif c == min(a,b,c):
 print('No')
else:
 print('Yes')

Submission status: Wrong Answer

Solution code:
s = input().split()
a = s[0]
b = s[1]
c = s[2]

if a>b and b<c:
  print("Yes")
elif a<b and b>c:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
li = list(map(int, input().split()))
A = li[0]
B = li[1]
C = li[2]

if A < B < C or A > B > C:
  print("Yes")
  
else:
  print("No")

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())
if A<C and B<C:
  print('Yes')
elif A>C and B>C:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())
ans = "No"
if C in range(A,B+1):
    ans = "Yes"
print(ans)

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if (a<b)&(b<c):
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

Solution code:
A,B,C=map(int,input().split())
pr='yes'
if (A-B)*(C-B)>=0:
    pr='no'
else:
    pass
print(pr)

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())

y = 'No'

if a < b:
    if c > a & c < b:
        y = 'Yes'

if a > b:
    if c > b & c < a:
        y = 'Yes'

print(y)

Submission status: Wrong Answer

Solution code:
N=input().split()
if N[0]<=N[2] and N[2]<=N[1]:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:

a, b, c = map(int, input().split())

b = c <= max(a,b) - min(a,b) 

print( 'Yes' if b else 'No')

Submission status: Wrong Answer

Solution code:
import sys
input=sys.stdin.readline

a,b,c=map(int,input().split())
if abs(a-c)<abs(a-b):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a, b,c = [v for v in input().split()]
if a < c < b:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c = map(int, input().split())  # -> x=1, y=2

if c < a and c < b:
    print("No")
if c > b and c > a:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if a <= c and b <= c:
  print("Yes")
elif c >= b and c >= a:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a,b,c = list(map(int,input().split()))

if c in range(a,b):
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

Solution code:
a , b , c = map(int, input().split())
if b>=c and a<=c:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split(' '))
if A <= C <= B:
    print('Yes')
elif B <= C <= A:
    print('Yes')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
a,b,c=input().split()
 
a=int(a)
b=int(b)
c=int(c)
if a < c and c < b:
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

Solution code:
a,b,c = map(int, input().split())

if abs(c - a) < abs(b - a) :
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
if A < B and B > C:
    print('Yes')
elif A > B and B < C:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:

A, B, C = map(int, input().split())

if(A<=C and C<=B):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if a<c and b>c:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
x,y,z = map(int,input().split())

if x < z :
    if z < y:
        print('Yes');
elif z < y:
    if z < x:
        print('Yes');
else:
    print('No');

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python

a, b, c = map(int,input().split())

if a <= c <= b:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
if A < C and C < B :
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if b > a:
    if b > c:
        print("Yes")
    else:
        print("No")
elif a > b:
    if a < c:
        print("Yes")
    else:
        print("No")
else:
    if b > c:
        print("Yes")
    else:
        print("No")

Submission status: Wrong Answer

Solution code:

a, b, c = (int(i) for i in input().split()) 

if a < c and c < b:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())

if A < C:
    if C < B:
        print('Yes')
        exit()
print('No')

Submission status: Wrong Answer

Solution code:
import numpy as np

def test(A, B, C):
	if (A<C) & (C<B):
		print('Yes')
	elif (B<C) & (C<A):
		print('Yes')
	else:
		print('No')

Submission status: Wrong Answer

Solution code:
x = input().split()
A = int(x[0])
B = int(x[1])
C = int(x[2])

if C in range(A, B):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = input().split()

if a <= c <= b or b <= c <= a:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if a<c and c<b:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a=list(map(int,input().split()))

if (a[0] < a[2] < a[1]):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if a < b < c or b < a < c:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!

A, B, C = list(map(int, input().split()))
if A < B:
    if A < C and C < B:
        print("yes")
    else:
        print("no")

if A > B:
    if A > C and C > B:
        print("yes")
    else:
        print("no")

Submission status: Wrong Answer

Solution code:
a,b,c = list(map(int,input().split(" ")))

if((a>b and c>b) or (a<b and c<b)):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
def main():
    A, B, C = map(int, input().split())

    if A < C < B or B < C < A:
        print('yes')

    else:
        print('no')


main()

Submission status: Wrong Answer

Solution code:
A,B,C=map(int,input().split())

if A<B:
    if B<C:
        print("No")
    else:
        print("Yes")
else:
    if B<C:
        print("Yes")
    else:
        print("No")

Submission status: Wrong Answer

Solution code:
vals = raw_input().split()
print ("Yes" if vals[1] in (max(vals), min(vals)) else "No")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split(" "))
if A <= C <= B:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
A = list(map(int, input().split()))

if (A[0] < A[2] < A[1]):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))
b = a[1]
m = min(a)
M = max(a)
if b == m or m == M:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
inputlist = input().split()
A = int(inputlist[0])
B = int(inputlist[1])
C = int(inputlist[2])

if (A > B > C)or(C > B > A):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if a < c and b > c:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())

if((A<B<C)or(A>B>C)):
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
print("Yes" if c in range(a,b) else "No")

Submission status: Wrong Answer

Solution code:
a, b, c= map(int,input().split())

if a <= c and c<=b:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = (int(i) for i in input().split())

if A > B and B> C:
    print("NO")
if A < B and B < C:
    print("NO")
if A < B and B > C:
    print("YES")
if A > B and B < C:
    print("YES")

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python

a, b, c = map(int,input().split())

if a < c < b:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())
if A < C < B:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())

if (a < b and b < c) or (a > b and b > c):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
A,B,C=map(int,input().split())
if(C>A)and(B>C):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())

if a >= c >= b:
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
if (A <= B and B >= C) or (A >= B and B <= C):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
if b<a<c:
    print("Yes")
    exit()
elif b<c<a:
    print("Yes")
    exit()
elif a<c<b:
    print("Yes")
    exit()
elif c<a<b:
    print("Yes")
    exit()
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c = map(int, input().strip().split(' '))
if a < c < b:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())
if A<B and B<C:
  print('No')
elif A>B and B>C:
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if (a < b and b > c) or (a > b and b < c):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())

if (a>b and b>c) or (a<b and b<c):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = list(map(int, input().split()))
if A < C < B:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
A, B, C = (int(i) for i in input().split())
if A <= C <= B:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = (int(x) for x in input().split())
if (a < c) and (b > c):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
if (max(A,B) - min(A,B) >= C):
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
if a < b:
    if max(a,b,c) == c:
        print("No")
    else:
        print("Yes")
else:
    if min(a,b,c)== c:
        print("No")
    else:
        print("Yes")

Submission status: Wrong Answer

Solution code:
#A - On the Way
a, b, c = map(int, input().split())
if (a<b and b<c) or (a>b and b>c):
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
#coding: utf-8
A, B, C = map(int, input().split())
if A < B < C or A > B > C:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
a, b, c = [int(c) for c in input().split()]

print('No') if a < b < c or c > b > a else print('Yes')

Submission status: Wrong Answer

Solution code:
a, b, c = (int(i) for i in input().split())  

if a < b and a < c and c < b:
  print('Yes')
elif b < a and b < c and b < a:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if(a <= b <= c or c <= b <= a):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
if A < C and  C < B:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())

if A <= C and C <= B:

    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())

if a < c:
    if a<b and b<c:
        print("No")
    else:
        print("Yes")
else:
    if c<b and b<a:
        print("No")
    else:
        print("Yes")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if a <= b <= c:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a,b,c = map(int, input().split())
if a < c and c < b:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if a < b and c < b:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())

if A<C<B:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
import sys
# gcd
# from fractions import gcd
# 切り上げ，切り捨て
# from math import ceil, floor
# リストの真のコピー（変更が伝播しない）
# from copy import deepcopy
# 累積和。list(accumulate(A))としてAの累積和
# from itertools import accumulate
# l = ['a', 'b', 'b', 'c', 'b', 'a', 'c', 'c', 'b', 'c', 'b', 'a']
# S = Counter(l)  # カウンタークラスが作られる。S=Counter({'b': 5, 'c': 4, 'a': 3})
# print(S.most_common(2))  # [('b', 5), ('c', 4)]
# print(S.keys())  # dict_keys(['a', 'b', 'c'])
# print(S.values())  # dict_values([3, 5, 4])
# print(S.items())  # dict_items([('a', 3), ('b', 5), ('c', 4)])
# from collections import Counter
input = sys.stdin.readline
def ii(): return int(input())
def mi(): return map(int, input().rstrip().split())
def lmi(): return list(map(int, input().rstrip().split()))
def li(): return list(input().rstrip())
# template


A, B, C = mi()
if A < B < C or C < B < A:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
a=input()
b=a.split()
x=b[0]
y=b[1]
z=b[2]
if x>=z>=y or x<=z<=y:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c=input().split()

a=int(a)
b=int(b)
c=int(c)
if a <= c and c <= b:
  print("Yes")
else:
	print("No")

Submission status: Wrong Answer

Solution code:
A,B,C = map(int, input().split())

answer = "Yes" if A < C and C < B else "No"
print(answer)

Submission status: Wrong Answer

Solution code:
a,b,c=(int(i) for i in input().split())
#print(a,b,c)
if a<= c<=b or b<=a <= c:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
A,B,C = (int(i) for i in input().split())

if C <= B and C >= A:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c = input().split()
a = int(a)
b = int(b)
c = int(c)

if a <= c and b >= c:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c = map(int, input().split())
if a < c < b:
    print("Yes")

else:
    print("No")

Submission status: Wrong Answer

Solution code:
# coding: utf-8
import re
import bisect
from datetime import datetime as dt
A, B, C = map(int, raw_input().split())

if A < B < C or C < B < A:
    print 'No'
else:
    print 'Yes'

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if (b>c and a<c)or(a>b and c<a):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if a <= b and b <= c:
  print("Yes")
elif c <= b and b <= a:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if a <= b and c <= b:
    print('Yes')
elif a >= b and c >= b:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
def solve():
  A, B, C = map(int, input().split())
  return 'Yes' if C in range(A, B) else 'No'

print(solve())

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
if a < b and b < c :
  print("No")
elif c < b and b < a:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())

road = list(range(A, B))

if C in road:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split(' '))
if A <= C <= B:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
A, B, C = map(int,input().split(" "))

if A<C<B:
    print('YES')
elif B<C<A:
    print('YES')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
a, b ,c = map(int, input().split())
if a < c and b > c:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
if C > A and C < B:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())

if a < c and c < b:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!
A = list(map(int,input().split()))
#print(A)

if A[0]>A[2]>A[1] or A[0] < A[2] < A[1]:
    print("YES")
else:
    print("NO")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int,open(0).read().split())
if (max(a,b) > c and c > min(a, c)):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A,B,C=map(int,input().split())
if A<C<B or C<B<A:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python
# coding: UTF-8


a, b, c = map(int,input().split())

if a < c < b:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c = [int(i) for i in input().split()]

if a <= c and c <= b:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
a,b,c=[int(x) for x in input().split()]
if a<=c<=b:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if (a<c)&(c<b)&(a<b):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())

if a < b and b > c:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
A, B, C = [int(elm) for elm in input().split(" ")] 

cond1 = (A <= B)
cond2 = (B <= C)

if (cond1 and cond2) or ((not cond1) and (not cond2)):
    out = "No"
else:
    out = "Yes"
print(out)

Submission status: Wrong Answer

Solution code:
import sys
stdin = sys.stdin
 
sys.setrecursionlimit(10**5) 
 
def ii(): return int(stdin.readline())
def li(): return map(int, stdin.readline().split())
A, B, C = tuple(li())
if C in range(A, B):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())


if C <= A and C <= B:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if a<c and c>b:
  print('Yes')
else:
  print('No')