#include <iostream>
using namespace std;

int main(){
    int x1, x2;
    cin >> x1 >> x2;

    if(x1 <= x2){
        cout << x2-x1 << endl;
    }else{
        cout << x1-x2 << endl;
    }

    return 0;
}
