#include #define ALL(v) std::begin(v),std::end(v) using lint=long long; using lubl=long double; int main(){ std::cin.tie(nullptr);std::ios_base::sync_with_stdio(false); std::cout.setf(std::ios_base::fixed);std::cout.precision(15); lint n,K;std::cin>>n>>K; if(n==0||K==0){ std::cout<<(K==0?"1":"INF")<<'\n'; return 0; } lint lg=std::log2(n); lint N=1ll<dp(N/2,0); dp.at(0)=true; for(lint i=0;i>i&1)continue; lint I=1ll<swp=dp; for(lint j=0;j