rt
https://www.luogu.com.cn/record/154843350
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
if(a==b)
{
cout<<1<<endl;
return 0;
}
double delta=(sqrt(5.0)+1)/2;
if(a>b) swap(a,b);
int d=b-a;
int c=(int)(delta*d);
if(a==c) cout<<0<<endl;
else cout<<1<<endl;
return 0;
}