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