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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c, = map(int,input().split())
if a<b:
    if c<b:
        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:
# import math
# import statistics
# a=input()
#b,c=int(input()),int(input())
# c=[]
# for i in a:
#     c.append(i)
e1,e2,e3 = map(int,input().split())
#f = list(map(int,input().split()))
#g = [input() for _ in range(a)]
# h = []
# for i in range(e1):
#     h.append(list(map(int,input().split())))

if e1<=e3<=e2:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    A, B, C = map(int, readline().split())

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


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

Solution code:
A, B, C = map(int, input().split())
if A <= C <= B and 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:
    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())
a, c = sorted([a, c])

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

Submission status: Wrong Answer

Solution code:
a, b, c = sorted(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())

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

Submission status: Wrong Answer

Solution code:
A,B,C = list(map(int,input().split(' ')))
[A,B] = [max(A,B),min(A,B)]
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 a <= c <= b or a >= b >= c else '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 < c < b:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
#Tenka1 Programmer Beginner Contest 2019 a
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:
(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())
print("Yes" if min(a,b) < c and max(a,b) > c else "no")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
from collections import deque, Counter
from heapq import heappop, heappush
from bisect import bisect_right

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

if __name__ == "__main__":
    main()

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())

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

Submission status: Wrong Answer

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


if a[2]>a[0] 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 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 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('Yes')
else:
		print('No')

Submission status: Wrong Answer

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

#############
# Libraries #
#############

import sys
input = sys.stdin.readline

import math
#from math import gcd
import bisect
from collections import defaultdict
from collections import deque
from collections import Counter
from functools import lru_cache


#############
# Constants #
#############

MOD = 10**9+7
INF = float('inf')

#############
# Functions #
#############

######INPUT######
def I(): return int(input().strip())
def S(): return input().strip()
def IL(): return list(map(int,input().split()))
def SL(): return list(map(str,input().split()))
def ILs(n): return list(int(input()) for _ in range(n))
def SLs(n): return list(input().strip() for _ in range(n))
def ILL(n): return [list(map(int, input().split())) for _ in range(n)]
def SLL(n): return [list(map(str, input().split())) for _ in range(n)]

######OUTPUT######
def P(arg): print(arg); return
def Y(): print("Yes"); return
def N(): print("No"); return
def E(): exit()
def PE(arg): print(arg); exit()
def YE(): print("Yes"); exit()
def NE(): print("No"); exit()

#####Shorten#####
def DD(arg): return defaultdict(arg)


#####Inverse#####
def inv(n): return pow(n, MOD-2, MOD)

######Combination######
kaijo_memo = []
def kaijo(n):
  if(len(kaijo_memo) > n):
    return kaijo_memo[n]
  if(len(kaijo_memo) == 0):
    kaijo_memo.append(1)
  while(len(kaijo_memo) <= n):
    kaijo_memo.append(kaijo_memo[-1] * len(kaijo_memo) % MOD)
  return kaijo_memo[n]

gyaku_kaijo_memo = []
def gyaku_kaijo(n):
  if(len(gyaku_kaijo_memo) > n):
    return gyaku_kaijo_memo[n]
  if(len(gyaku_kaijo_memo) == 0):
    gyaku_kaijo_memo.append(1)
  while(len(gyaku_kaijo_memo) <= n):
    gyaku_kaijo_memo.append(gyaku_kaijo_memo[-1] * pow(len(gyaku_kaijo_memo),MOD-2,MOD) % MOD)
  return gyaku_kaijo_memo[n]

def nCr(n,r):
  if(n == r):
    return 1
  if(n < r or r < 0):
    return 0
  ret = 1
  ret = ret * kaijo(n) % MOD
  ret = ret * gyaku_kaijo(r) % MOD
  ret = ret * gyaku_kaijo(n-r) % MOD
  return ret

######Factorization######
def factorization(n):
  arr = []
  temp = n
  for i in range(2, int(-(-n**0.5//1))+1):
    if temp%i==0:
      cnt=0
      while temp%i==0: 
        cnt+=1 
        temp //= i
      arr.append([i, cnt])
  if temp!=1:
    arr.append([temp, 1])
  if arr==[]:
    arr.append([n, 1])
  return arr

#####MakeDivisors######
def make_divisors(n):
  divisors = []
  for i in range(1, int(n**0.5)+1):
    if n % i == 0:
      divisors.append(i)
      if i != n // i: 
        divisors.append(n//i)
  return divisors

#####MakePrimes######
def make_primes(N):
  max = int(math.sqrt(N))
  seachList = [i for i in range(2,N+1)]
  primeNum = []
  while seachList[0] <= max:
    primeNum.append(seachList[0])
    tmp = seachList[0]
    seachList = [i for i in seachList if i % tmp != 0]
  primeNum.extend(seachList)
  return primeNum

#####GCD#####
def gcd(a, b):
    while b:
        a, b = b, a % b
    return a

#####LCM#####
def lcm(a, b):
    return a * b // gcd (a, b)

#####BitCount#####
def count_bit(n):
  count = 0
  while n:
    n &= n -1
    count += 1
  return count

#####ChangeBase#####
def base_10_to_n(X, n):
  if X//n:
    return base_10_to_n(X//n, n)+[X%n]
  return [X%n]

def base_n_to_10(X, n):
  return sum(int(str(X)[-i-1])*n**i for i in range(len(str(X))))

#####IntLog#####
def int_log(n, a):
  count = 0
  while n>=a:
    n //= a
    count += 1
  return count

#############
# Main Code #
#############
A,B,C = IL()

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) * (B-C) < 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 '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<c<b or b<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 a<b<c:
    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())
print("YES" if a<c<b or b<c<a else "NO")

Submission status: Wrong Answer

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

else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c = map(int,input().split())
print("No" if a<b and b<c or c<b and b<a else "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())
print('Yes' if A-C>0 or C-B>0 and A-C<0 or C-B<0 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, b, c = map(int, input().split())
print("Yes" if max(a, b, c) == b or min(a, b, c) == b else "NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

maxi=max(A,B,C)
mini=min(A,B,C)
if B!=maxi and B!=mini:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

def lcm(x, y):
    return (x * y) // math.gcd(x, y)

if __name__ == '__main__':
    a = [int(i) for i in input().split()]

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

Submission status: Wrong Answer

Solution code:
s = list(map(int, input().split()))
ss = sorted(s)
ssr = sorted(s, reverse=True)

if s==ss or s==ssr:
  print("No")
else:
  print("Yes")

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

Submission status: Wrong Answer

Solution code:
*s, t = map(int, input().split())
s.sort()
for i in range(s[0],s[1]+1):
  if i == t:
    print("Yes")
print("No")

Submission status: Wrong Answer

Solution code:
*s, t = map(int, input().split())
s.sort()
for i in range(s[0],s[1]):
  if i == t:
    print("Yes")
print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

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:
#!/usr/bin/env python3
import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
inf = float('inf') ;mod = 10**9+7
mans = inf ;ans = 0 ;count = 0 ;pro = 1

a,b,c=map(int,input().split())
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 < 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 == max(a, b, c) or b == min(a, 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 else "No")

Submission status: Wrong Answer

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

print("YES" if a<c<b or b<c<a else "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())
print('Yes' if max(a, b) <= c <= min(a, b) else 'No')

Submission status: Wrong Answer

Solution code:
a,c,b=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('Yes' if A<=C and C<=B else 'No')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if m[0]<=m[2]<=m[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')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, c = [ int(v) for v in 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 < C < B:
  print('YES')
elif B < C < A:
  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:
x = list(map(int, input().split()))
x = x[0], x[2], x[1]
print("Yes" if all(map(lambda x, y: x==y, x, sorted(x))) 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,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:
def solve(a,b,c):
    return "Yes" if (a < c < b) or (c < a < b) else "No"

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

Submission status: Wrong Answer

Solution code:
def solve(a,b,c):
    return "Yes" if (a < c < b) else "No"

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, c = map(int, 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 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())
print('Yes' if C in range(A, B+1) else 'No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
from sys import stdin


def answer(A, x, y):
    if x > y and A < y:
        print("Yes")
    else:
        print("No")


def main():
    A, B, C = [int(x) for x in stdin.readline().split()]
    if A < B:
        answer(A, B, C)
    else:
        answer(A, C, B)


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
from sys import stdin


def answer(B, C):
    if B > C:
        print("Yes")
    else:
        print("No")


def main():
    A, B, C = [int(x) for x in stdin.readline().split()]
    if A < B:
        answer(B, C)
    else:
        answer(C, B)


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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