#include using namespace std; int main(){ int A,B,C; cin>>A>>B>>C; int mx=max(A,C); int mi=min(A,C); if(B>mx){ cout<