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<b<c or b<c<a:
   print("yes")
else:
   print("no")

Submission status: Wrong Answer

Solution code:
a=list(map(int,input().split(" ")))
x=a[0]>=a[1]
y=a[2]>=a[1]
if x==y:
    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(x) for x in input().split())


def on_the_way(a, b, c):
    if not a < b < c or a > b > c:
        print('Yes')
    else:
        print('No')

on_the_way(a, b, c)

Submission status: Wrong Answer

Solution code:
list = [int(i) for i in input().split()] 
print('Yes' if max(list) == list[1] or min(list) == list[1] else 'No' )

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

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 < c and c < b):
  print("yes")
elif (b < c and c < 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:
a , b , c = list(map(int,input().strip().split()))

d = c - max( a , b )

if d > 0 :
    print("No")

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:
import sys

a = list(map(int, input().split()))

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 = list(map(int,input().split()))

if b-a> 0:
    if c-b > 0:
        print("no")
    else:
        print("yes")
else:
    if b-c > 0:
        print("no")
    else:
        print("yes")

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if c>=a:
    if b>=c:
        print("Yes")
    else:
            print("No")
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:
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:
s = input()
a, b, c = [int(_) for _ in s.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())

print("Yes") if abs(A-C)<=abs(A-B) else print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if b-a> 0:
    if c-b > 0:
        print("no")
    else:
        print("yes")
else:
    if b-c > 0:
        print("no")
    else:
        print("yes")

Submission status: Wrong Answer

Solution code:
A,B,C = (int(i) for i in input().split())
a = min(A,B)
b = max(A,B)
if a<C<b:
   print('YES')
else:
   print('NO')

Submission status: Wrong Answer

Solution code:
input_str = input()
homes = input_str.split(" ")
for home in homes:
    home = int(home)
if ((homes[0] < homes[2] and homes[2] < homes[1]) or (homes[0] > homes[2] and homes[2] > homes[1])):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if C<A 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 b > c :
    print('No')
elif c > b and b > a:
    print('No')
elif a > b and b < c :
    print('Yes')
elif a < b and b > c:
    print('Yes')
elif a == b or b == c:
    print('Yes')
elif a == c:
    print('No')

Submission status: Wrong Answer

Solution code:
N=3
s=".######."
#s=[s[i] for i in range(len(s))]
#N=input()
#s=input()
s=[s[i] for i in range(len(s))]
hit1=0
count1=0
for i in s:
    if i=="#":
        hit1 = 1
    if i==".":
        count1=count1+hit1
count2=0
hit2=0
for i in range(len(s)):
    if s[-1-i]==".":
        hit2 = 1
    if s[-1-i]=="#":
        count2=count2+hit2
        
print(min(count1,count2))

Submission status: Wrong Answer

Solution code:
[a, b, c] = input().split()
print('yes' if int(a) < int(c)  and int(c) < int(b) else 'no' )

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a<b:
    if b<c:
        z=1

if a>b:
    if b>c:
        z=1

if z==1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,input().split())
if A>C & C>B:
	print("yes")
if B>C & C>A:
   	print("yes")
if C>A & A>B:
	print("No")
if B>A & A>C:
	print("No")
if A>B & B>C:
	print("No")
if C>B & B>A:
	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=list(map(int,input().split()))
if a[2]>a[1]:
    print('No')
elif a[2]<a[0]:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a<c:
    if b<c:
        z=1

if a>c:
    if b>c:
        z=1

if z==1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
def main():
    A, B, C = map(int, input().split())
    N1 = abs(A - B)
    N2 = abs(C)
    if N2 < N1:
        print("No")
    elif N1 == N2 or N1 < N2:
        print("Yes")
main()

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if c>a:
    if b>c:
        print("Yes")
    else:
            print("No")
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 = 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 (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 b > c :
    print('No')
elif c > b and b > a:
    print('No')
elif a > b and b < c :
    print('Yes')
elif a < b and b > c:
    print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
    A, B, C = map(int, input().split())
    N1 = abs(A - B)
    N2 = abs(C)
    if N2 < N1:
        print("No")
    else:
        print("Yes")
main()

Submission status: Wrong Answer

Solution code:
def check_between(a,b,c):
    if  (b < c) and (c < a) :
        print('YES')
    elif (a < c) and (c <b) :
        print('YES')
    else:
        print('NO')

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

Submission status: Wrong Answer

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

if a  <  b and c < b:
    print("Yes")
elif c < b and b < a:
  	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:
# -*- coding: utf-8 -*-

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

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

Submission status: Wrong Answer

Solution code:
data = [int(s) for s in input().split()]

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if (p[0] < p[1] and p[1] < p[2]):
  print("yes")
elif (p[2] < p[1] and p[1] < p[0]):
  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<C & C<B:
	print("yes")
else:
	if A>C & C>B:
   		print("yes")
	else:
		print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if c * b > 0 and abs(b) < abs(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('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int, input().split()) 
if abs(a-b)> c:
  print("yes")
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<C) & (C<B):
  print('Yes')
elif (B<C) & (C<A):
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
input_str = input()
homes = input_str.split(" ")
for home in homes:
    home = int(home)
if (homes[0] < homes[2] and homes[2] < homes[1]):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import sys
 
inp = map(int, raw_input().strip().split(" "))
 
if inp[2] > inp[1] and inp[1] < inp[0]:
    print("Yes")
elif inp[2] > inp[1] and inp[2] < inp[0]:
    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:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

li = [A, B, C]

if (max(li) != C and A < B) or (min(li) != C and A > B):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

road = list(range(A + 1, B)) if A < B else list(range(B + 1, A))
if C in road:
    print(list(range(B + 1, A)))
    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 = map(int,input().split())
if A<=C:
	if C<=B:
		print("yes")
else:
	if A>=C:
		if C>=B:
   			print("yes")
	else:
			print("No")

Submission status: Wrong Answer

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

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')
elif int(b[0]) == int(b[1]):
    print('No')
else:
    if int(b[1]) <= int(b[2]):
        print('No')
    else:
        print('Yes')

Submission status: Wrong Answer

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

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')
elif int(b[0]) == int(b[1]):
    print('No')
else:
    if int(b[1]) > int(b[2]):
        print('Yes')
    else:
        print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

a != b
b != c
c != a

1 <= a <= 100
1 <= b <= 100
1 <= c <= 100

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

Submission status: Wrong Answer

Solution code:
data = [int(s) for s in input().split()]

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

Submission status: Wrong Answer

Solution code:
btn=input().split()
A=int(btn[0])
B=int(btn[1])
C=int(btn[2])
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:
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:
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 = list(map(int, input().split()))

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


from sys import stdin


############################################


# read data for n sequences.
n = stdin.readline().split()
a = int(n[0])
b = int(n[1])
c = int(n[2])
#data = [int(stdin.readline().rstrip()) for _ in range(n)]

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if a > c > c or a < 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:
        if a < c:
            print("Yes")
    else:
        print("No")
elif a > b:
    if a > c:
        if b < c:
            print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
l = [int(i) for i in input().split(' ')]
if (l[0] < l[2]) and (l[1] > l[2]):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
r_str = input()
r_str = r_str.split()
r = [int(s) for s in r_str]
a = 'Yes'

if r[0] >= r[1]:
    if r[0] <= r[2]:
        a = 'Yes'
    else:
        a = 'No'
else:
    if r[1] <= r[2]:
        a = 'Yes'
    else:
        a = 'No'

print(a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
abc=list(map(int,input().split()))
if max(abc)==abc[1]:
  print("Yes")
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:
  	print("No")
else:
  if(pos[0] < pos[2]):
    if(pos[2] < pos[1]):
      print("Yes")
    else:
      print("No")
  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:
x,y,z=map(int,input().split())
if x<y:
    if y>z:
        print("Yes")
    else:
        print("No")
elif x>y:
    if y<z:
        print("Yes")
    else:
        print("No")

Submission status: Wrong Answer

Solution code:
import numpy as np
huga = list(map(int, input().split()))
a=huga[0]
b=huga[1]
c=huga[2]
if a>b:
  x=a
  b=a
  a=x

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

li = [A, B, C]

if max(li) != C:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
s = [int(i) for i in input().split(" ")]
count = 0

if s[0] < s[1]:
    for i in range(s[0], s[1]):
        print("1<2 : {}".format(i))
        if i == s[2]:
            print("Yes")
            count = 1
            break

else:
    for i in range(s[1], s[0]):
        print("2<1 : {}".format(i))
        if i == s[2]:
            print("Yes")
            count = 1
            break

if count == 0:
    print("No")

Submission status: Wrong Answer

Solution code:
ia, ib, ic = map(int, input().split())
if ia >= ib and ic >= ib:
    print("Yes")
    exit()
    
if ia <= ib and ic <= ib:
    print("Yes")
    exit()
else:
    print("No")

Submission status: Wrong Answer

Solution code:
import sys

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

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:
from sys import stdin

readline = stdin.readline

a, b, c = map(int, readline().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())
a=abs(A-B)
b=abs(A-C)
if (a>b):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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


def on_the_way(a, b, c):
    if a < b < c or a > b > c:
        print('No')
    else:
        print('Yes')

on_the_way(a, b, c)

Submission status: Wrong Answer

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


def on_the_way(a, b, c):
    if a < b < c or a > b > c:
        print('No')
    else:
        print('Yes')

on_the_way(a, b, c)

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:
    print("No")

Submission status: Wrong Answer

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

li = [A, B, C]

if (A == max(li) and B < C) or (B == max(li) and B > C):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
l = input(int())

k = l.split()
o = k[2]
if k[0] < k[1]:
    k[2] = k[0]
    k[0] = k[1]
    k[1] = k[2]
else:
    pass

p = int(k[0]) - int(k[1])
if int(p) > int(o):
    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())

ab = b -a
ac = c -a

if  (ab > 0 and ac < ab) or (ab < 0 and ab < ac):
    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:
# -*- coding: utf-8 -*-
import sys
import os

x,y,z = [int(i) for i in input().split(' ')]

if x < z < y:
    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 a <= b <= c:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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, 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(C>A):
  if(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) or (a > c and c > b):
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
def p(*a):
  s=" ".join(map(str,a))
  #print(s)
  sys.stderr.write(s+"\n")


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

p(a,b,c)

ans="No"
if a<c and c<b: ans="Yes"

print(ans)

Submission status: Wrong Answer

Solution code:
import sys

def main():
    argv = input().split()
    A = int(argv[0])
    B = int(argv[1])
    C = int(argv[2])
    print(judge(A, B, C))

def judge(A, B, C):
    if (A < C and A < B) or (C < A and B < A):
        return 'Yes'
    else:
        return 'No'

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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


def on_the_way(a, b, c):
    if a < b < c or a < b < c:
        print('No')
    else:
        print('Yes')

on_the_way(a, b, c)

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:
a, b, c = map(int, input().split())

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
if a > c and c > b:
    print('Yes')
elif b > 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:
    print("No")

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

Submission status: Wrong Answer

Solution code:
import numpy as np
huga = list(map(int, input().split()))
a=huga[0]
b=huga[1]
c=huga[2]
if a>b:
  x=a
  b=a
  a=x

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)/2 >= c:
  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:
# -*- 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())
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 C > A and C < B:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
s = [int(i) for i in input().split(" ")]
count = 0

if s[0] < s[1]:
    for i in range(s[0], s[1]):
        print("1<2 : {}".format(i))
        if i == s[2]:
            print("Yes")
            count = 1
            break

else:
    for i in range(s[1], s[0]):
        print("2<1 : {}".format(i))
        if i == s[2]:
            print("Yes")
            count = 1
            break

if count == 0:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b, c = (int(x) for x in input('入力:').split())


def on_the_way(a, b, c):
    if a < b < c or a < b < c:
        print('no')
    else:
        print('yes')

on_the_way(a, b, c)

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 = map(int,input().split())

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

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 > c:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

1 <= a <= 100
1 <= b <= 100
1 <= c <= 100

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:
    if b < c:
        print('No')
    else:
        print('Yes')
else:
    if b < c:
        print('No')
    else :
        print('Yes')

Submission status: Wrong Answer

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

print(a, b, c)
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 < b > c:
    print('Yes')
elif a > b < c:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a=list(map(int,input().split()))
if (max(a)!=a[1])&(min(a)!=a[1]):
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

Solution code:
from sys import stdin

readline = stdin.readline

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

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

Submission status: Wrong Answer

Solution code:

import sys

args = list(map(int, input().split()))
print(args)
if args[0] < args[1] and args[1] < args[2] or args[2] < args[1] and args[1] < args[0]:
    print("yes")
else:
    print("no")

Submission status: Wrong Answer

Solution code:
# /usr/bin/python
# -*- coding: utf-8 -*-
import sys
import math


a,b,c = map(int, sys.stdin.readline().rstrip().split())
if a<=c and b>=c:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
inp = [int(f) for f in input().split()]
if inp[0] > inp[2]:
    if inp[1] < inp[2]:
        print('Yes')
    else:
        print('No')
elif inp[0] > inp[2]:
    if inp[1] < inp[2]:
        print('Yes')
    else:
        print('No')

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')
elif int(b[0] == b[1]):
    print('No')
else:
    if int(b[1]) > int(b[2]):
        print('Yes')
    else:
        print('No')

Submission status: Wrong Answer

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

tmp_max = max(A,B)
tmp_min = min(A,B)
A = tmp_min
B = tmp_max

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

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
print("Yes" if a < c and c < b else "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")