#include <bits/stdc++.h>
using namespace std;
int main()
{ int a,b,mx;
cin >> a >> b;
if (a>b) cout << (a-b); else
cout << (b-a);
}
#include <bits/stdc++.h>
using namespace std;
int main()
{ int a,b,mx;
cin >> a >> b;
if (a>b) cout << (a-b); else
cout << (b-a);
}