#include<iostream>
using namespace std;
int main()
{
    int n,m;
    while(cin>>n>>m)
    {
                    --m;
                    if(((n/m)%2==0)&&n%m==0) cout<<"NO"<<endl;
                    else cout<<"YES"<<endl;
    }
    return 0;
}