![ContractedBlock.gif](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![ExpandedBlockStart.gif](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
#include
<
cstdio
>
#include < iostream >
#include < cstdlib >
#include < cstring >
#include < cmath >
using namespace std;
int main()
{
// freopen("D:\\t.txt", "r", stdin);
int n, k;
while (scanf( " %d%d " , & n, & k) != EOF)
printf( " %d\n " , k & (n - k) ? 0 : 1 );
return 0 ;
}
#include < iostream >
#include < cstdlib >
#include < cstring >
#include < cmath >
using namespace std;
int main()
{
// freopen("D:\\t.txt", "r", stdin);
int n, k;
while (scanf( " %d%d " , & n, & k) != EOF)
printf( " %d\n " , k & (n - k) ? 0 : 1 );
return 0 ;
}