#include <iostream>
using namespace std;
int main(void){
    int x1,x2;
    cin>>x1>>x2;
    if(x1>x2){
        cout<<x1-x2<<endl;
    }
    else if(x1<x2){
        cout<<x2-x1<<endl;
    }
    else if(x1==x2){
        cout<<"0"<<endl;
    }
    }
