#include<iostream>
using namespace std;
int main()
{
    int a,b,c;
    int m,n,o;
    cin>>a>>b>>c;
    m=a;
    n=b;
    o=c;

    b=m;
    a=o;
    c=n;

    cout<<a<<" "<<b<<" "<<c;
    return 0;
}

#include <iostream>
#include <iomanip>
typedef long long ll;
using namespace std;
const ll INF = 1e9;
const ll MOD = 1e9 + 7;
#define repi(i, n, init) for (ll i = init; i < (n); i++)

int main()
{

    int a, b, c;
    cin >> a >> b >> c;
    cout << (a <= c && c <= b || b <= c && c <= a ? "Yes" : "No") << endl;
    return 0;
}