//#include <iostream>//#include<cmath>using namespace std;
int main(){ long long int a;long long int b; cin>>a>>b; if(a>b) cout<< abs(a-b)<<endl; if(a==b) cout<<"0"<<endl; if(a<b) cout<< abs(b-a)<<endl; return 0;}