Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 02 / Solutions / 06. Chainsaw.cpp
blob: 68940e0dbe197a1af96f3b2449e263317d5441eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>
using namespace std;

int main()
{
	int a, b, c, d, e;
	cin >> a >> b >> c >> d >> e;

	if ((a <= b && b >= c && c <= d && d >= e)
		|| (a >= b && b <= c && c >= d && d <= e))
	{
		cout << "Yes";
	}
	else
		cout << "No";
}