#include using namespace std; using ll = long long; int main(){ int a,b; cin>>a>>b; int ans = 1e9; for(int i = 0;i<=a;i++){ for(int j = 0;j<=b;j++){ if(i>b||j>a) continue; int good = i + j; int bad = a - i + b - j; ans = min(ans,abs(good-bad)); } } cout<