#include <bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; if(a<b)swap(a,b); if(a-b==b/2+1)cout<<0; else cout<<1; }
能ac