#include using namespace std; typedef long long ll; int main() { int a, b; cin>>a>>b; a++; if (b >= a) puts("YES"); else { puts("NO"); cout<