# include # define FILE(x) freopen(x ".in", "r", stdin); freopen(x ".out", "w", stdout); using namespace std; const double e = 1e-12; bool check(double a, double b, double c, double d) { double minn = 0.0, maxx = 1e100; if (fabs(b) < e) { if (!(a > 0)) return 0; } else if (b > 0) { minn = max(minn, -a / b); } else { maxx = min(maxx, -a / b); } if (fabs(d) < e) { if (!(c > 0)) return 0; } else if (d > 0) { minn = max(minn, -c / d); } else { maxx = min(maxx, -c / d); } return minn + e < maxx; } void solve() { double x1, x2, x3, y1, y2, y3; cin >> x1 >> x2 >> x3 >> y1 >> y2 >> y3; bool ans = 0; if (check(x2 - x1, y2 - y1, x2 - x3, y2 - y3) || check(- (x2 - x2), - (y2 - y1), - (x2 - x3), - (y2 - y3))) ans = 1; cout << (ans ? "YES" : "NO") << '\n'; } int main() { //FILE("bamboo"); ios :: sync_with_stdio(0); cin.tie(0), cout.tie(0); int T = 1; //cin >> T; while (T --) solve(); return 0; }