#include <iostream>
using namespace std;

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

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

