#include int main() { int a[5], i; for (i = 0; i < 5; i++) scanf("%d", &a[i]); if (a[1] == a[3]) printf("Yes\n"); else printf("No\n"); return 0; }