Module _20190421

    Sub Main()

        Dim sRead As String = Console.ReadLine()

        Dim iHouse1 As Integer = sRead.Split(" ")(0)
        Dim iHouse2 As Integer = sRead.Split(" ")(1)
        Dim iHouse3 As Integer = sRead.Split(" ")(2)

        If iHouse1 < iHouse3 AndAlso iHouse3 < iHouse2 Then

            Console.WriteLine("Yes")

        ElseIf iHouse1 > iHouse3 AndAlso iHouse3 > iHouse2 Then

            Console.WriteLine("Yes")

        Else

            Console.WriteLine("No")

        End If

    End Sub

End Module
