#include "iostream" #include "stdio.h" using namespace std; int main(){ int N, M; cin >> N >> M; if(M >= 3 && N - M >= 3){ cout << "YES" << endl; }else{ cout << "NO" << endl; } }