//#define _GLIBCXX_DEBUG #include #define PI 3.14159265359 using namespace std; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define bit(n,k) (((ll)n>>(ll)k)&1) /*nのk bit目*/ const long long INF= 1e+18+1; typedef long long ll; typedef vector vl; typedef vector >vvl; typedef pair P; typedef tuple T; //const ll MOD=1000000007LL; const ll MOD=998244353LL; string abc="abcdefghijklmnopqrstuvwxyz"; string ABC="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; vl dx={-1,-1,-1,0,0,1,1,1}; vl dy={1,-1,0,1,-1,1,0,-1}; int main(){ ll n,k;cin>>n>>k; if(n%2==0){ if(k>=n/2){ cout<