#include using namespace std; void fast_io() { ios::sync_with_stdio(false); std::cin.tie(nullptr); } int main() { fast_io(); long long x1, y1, x2, y2, x3; cin >> x1 >> y1 >> x2 >> y2 >> x3; if (abs(x1 * y2 - x2 * y1) == abs((x1 - x3) * y2 - (x2 - x3) * y1)) { cout << "Yes\n"; } else { cout << "No\n"; } }