#include <bits/stdc++.h>

using namespace std;
using ll = long long;

int main(){
    cin.tie(nullptr);
    ios_base::sync_with_stdio(false);

    int a, b, c, d, e;
    bool f=0;
    cin >> a >> b >> c >> d >> e;
    if (b == d) f=1;
    if (a == e/2 && c == e/2) f=1;
    cout << (f ? "Yes" : "No") << endl;

    return 0;
}