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:
s=list(input().split())
if s[0]<s[2]<s[1]:
        c='Yes'
elif s[1]<s[2]<s[0]:
        c='Yes'
else:
        c='No'           
print(c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a <= c <= b:
  ans = 'Yes'
else:
  ans = 'No'

print("{}".format(ans))

Submission status: Wrong Answer

Solution code:
#encoding:utf-8

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 <= b):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(a+1, b):
	if i==c:
		print("Yes")
		exit()
print("No")

Submission status: Wrong Answer

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

for i in range(a, b):
	if i==c:
		print("Yes")
		exit()
print("No")

Submission status: Wrong Answer

Solution code:

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

for i in range(a, b+1):
	if i==c:
		print("Yes")
		exit()
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(i) for i in input().split()]

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

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split());print('YNeo s'[(c>a)^(c>b)::2])

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問題
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 = 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<b | b<c<a:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
  str_pos_arr = input().split()
  dist_ab = abs(int(str_pos_arr[0]) - int(str_pos_arr[1]))
  dist_ac = abs(int(str_pos_arr[0]) - int(str_pos_arr[2]))
  answer = 'Yes' if (dist_ab > dist_ac) else 'No'
  print(answer)

Submission status: Wrong Answer

Solution code:
if __name__ == 'main':
  [a, b, c] = map(lambda x: int(x), input().split())
  answer = 'Yes' if (a-b > a-c) else 'no'
  print(answer)

Submission status: Wrong Answer

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

# normalize
norm_A = 0
norm_B = B - A
norm_C = C - A

print('Yes' if abs(norm_B) >= abs(norm_C) else 'No')

Submission status: Wrong Answer

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

# normalize
norm_A = 0
norm_B = B - A
norm_C = C - A

print('Yes' if abs(norm_B) >= abs(norm_C) else 'No')

Submission status: Wrong Answer

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

# normalize
norm_A = 0
norm_B = B - A
norm_C = C - A

print('YES' if abs(norm_B) >= abs(norm_C) else '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 = list(map(int,input().split()))
if a[1] > a[0]:
  if a[1] > a[2] or a[2] < a[0]:
    print("No")
  else:
  	print("Yes")
else:
  if a[1] > a[2] or a[2] > a[0]:
    print("No")
  else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

func()

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 and c<b) or (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 < B:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:


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

if a < b:
    if a < c and c < b:
        print('YES')
    else:
        print('NO')

elif a > b:
    if b < c and c < a:
        print('YES')
    else:
        print('NO')

Submission status: Wrong Answer

Solution code:
i = input().split(' ')
if i[0] < i[2]:
  if i[1] > i[2]:
    print('YES')
  else:
    print('NO')
else:
  if i[1] > i[2]:
    print('NO')
  else:
    print('YES')

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
ans = 'Yes' if C in list(range(min(A, B), abs(B-A)+1)) else 'No'
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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())
ans = 'Yes' if C in range(min(A, B), abs(B-A)) else 'No'
print(ans)

Submission status: Wrong Answer

Solution code:
A,B,C = map(int,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 < 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 < 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('OK')
else :
    print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

A, B, C = int(tmp_lst[0]), int(tmp_lst[1]), int(tmp_lst[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:
from collections import defaultdict,deque
import sys,heapq,bisect,math,itertools,string,queue,datetime,random
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inpl(): return list(map(int, input().split()))
def inpls(): return list(input().split())

A,B,C = inpl()
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 or c > a > b :
  print('Yes')
else :
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a < b :
  ans = True if a < c and c < b else False

if a > b :
  ans =  True if b < c and c < a else False

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
l = [i for i in range(min(a, b), max(a, b) + 1)]
if c in l:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
import math
import sys
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 = (int(x) for x in input().split())
 
 
def on_the_way(a, b, c):
    if a < b < c or a > b > c:
        print('No')
    elif c < b < a or c > b > a:
        print('No')
    else:
        print('Yes')
 
on_the_way(a, b, c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B,C=(int(i) for i in input().split())
if B<=A<=C or 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(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 < b: 
    if a < c and c < b:
        print("Yes")
    else:
        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())
if a < c and c < b:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
l = [int(i) for i in input().split()]
l_sorted = sorted(l)
if l[1] == l_sorted[1]:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
import numpy as np

a=np.array(((1,-1),(2,4)),dtype=np.float)
b=np.array((1,1),dtype=np.float)
x=np.array((1,1),dtype=np.float)

epsilon=10**-3
n=len(a)
M=0

while True:
    M=0
    for i in range(n):
        S=sum(a[i]*x)
        X=(1/a[i][i])*(b[i]-S+a[i][i]*x[i])
        M+=1 if abs((X-x[i])/X)<epsilon else 0
        x[i]=X
        print(x)
    if M==n:
        break

print(x)

Submission status: Wrong Answer

Solution code:
import numpy as np

a=np.array(((1,-1),(2,4)),dtype=np.float)
b=np.array((1,1),dtype=np.float)
x=np.array((1,1),dtype=np.float)

epsilon=10**-3
n=len(a)
M=0

while True:
    M=0
    for i in range(n):
        S=sum(a[i]*x)
        X=(1/a[i][i])*(b[i]-S+a[i][i]*x[i])
        M+=1 if abs((X-x[i])/X)<epsilon else 0
        x[i]=X
    if M==n:
        break

print(x)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
if max(a,b)>=c>=min(a,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 = [int(i.strip()) for i in 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:
def main():
    A,B,C = [int(x) for x in input().split()]
    if A < C < B:
        print('yes')
    elif B < C < A:
        print('yes')
    else:
        print('no')

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, input().split())
print('YES' if (c-a > 0) ^ (c-b > 0) else 'NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a, b, c = (int(i) for i in 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 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<=c or c<=b<=a:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    ABC = input().split(" ")
    x = [int(x) for x in ABC]

    if x[0]<x[2] and x[1]>x[0]:
        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 (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<b else "No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
print(['No','Yes'][b<=min(a,c) or b>=max(a,c)])

Submission status: Wrong Answer

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

p_min = min(a, b)
p_max = max(a, b)
print(p_min, p_max)
if p_min <= c <= p_max:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a,b,c=map(int,input().split())
print(['No','Yes'][b<min(a,c) or b>max(a,c)])

Submission status: Wrong Answer

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

p_min = min(a, b)
p_max = min(a, b)
if p_min <= c <= p_max:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

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

    else:
        print("No")


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
ia, ib, ic = map(int, input().split())

if (ia > ib and ic > ib) or (ia < ib and ic < ib):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c = map(int, input().split())
print("Yes" if (c-a)*(c-b)>0 else "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')
else:
    if int(b[1]) < int(b[2]):
        print('No')
    else:
        print('Yes')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if a < b < c or a > b > c:
    print('No')
elif c < b or b < a:
    print('yes')
else:
    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:
ia, ib, ic = map(int, input().split())

if ia > ib and ib > ic:
    print("No")
elif ia < ib and ib < ic:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

e = max([a , b , c])

d = c - e

if d >= 0 :
    print("No")

print("Yes")

Submission status: Wrong Answer

Solution code:
ia, ib, ic = map(int, input().split())

if ia >= ib >= ic:
    print("No")
elif ia <= ib <= ic:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

# Parse and assignment for input
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())

e = max([a , b])

d = c - e

if d > 0 :
    print("No")

print("Yes")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
ia, ib, ic = map(int, input().split())

if ia > ib > ic:
    print("No")
elif ia < ib < ic:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
ia, ib, ic = map(int, input().split())

if ia >= ib >= ic or ia <= ib <= ic:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
ia, ib, ic = map(int, input().split())

if ia > ib > ic or ia < ib < ic:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

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

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

Submission status: Wrong Answer

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

e = max([ a , b])

d = c - e

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:
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(x) for x in input().split())

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

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

Submission status: Wrong Answer

Solution code:
import sys
str = input()

if str[0] < str[4]:
  if str[2] > str[4]:
    print('Yes')
    exit(0)

if str[0] > str[4]:
  if str[2] < str[4]:
    print('Yes')
    exit(0)
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 < b and a < c:
    print('Yes')
elif 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 < b < c) or (a > b > c):
    print('No', end="")
else:
    print('Yes', end="")

Submission status: Wrong Answer

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

# Parse and assignment for input
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 < B:
    print('Yes')
else:
   print('No')

Submission status: Wrong Answer

Solution code:
import sys
str = input()

if str[0] < str[2]:
  if str[1] > str[2]:
    print('Yes')
    exit(0)

if str[0] > str[2]:
  if str[1] < str[2]:
    print('Yes')
    exit(0)
print('No')

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

e = [a , b]

d = c - max( e )

if d > 0 :
    print("No")

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

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

if ((a[0] > a[2]) and (a[2] > a[1])) or ((a[0] < a[2]) and (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 (a > 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 = (int(x) for x in input('').split())
if a < b < c:
    print('No')
elif a > b > c:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if l[0] < l[2]:
 print('No')
elif l[2] < l[0]:
 print('No')
else:
 print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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


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

Submission status: Wrong Answer

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

if l[0] < l[2]:
 print('Yes')
elif l[2] < l[0]:
 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 = map(int, input().split())
if B - A >= A:
    print('Yes')
else:
   print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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


if il[0] < il[2] and il[2] < il[1]:
    
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

Solution code:
A, B, C = list(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 >= C:
    print('No')
elif B <= C:
    print('No')
else:
   print('Yes')

Submission status: Wrong Answer

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

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

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

on_the_way(a, b, c)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if l[0]<= l[2] and l[2]<= l[1]:
	print('Yes')
elif l[0] >= l[2] and l[2] <= l[1]:
	print('Yes')
else:
	print('No')