#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
using namespace std;
int main(void) {
  int x, y;
  cin >> x >> y;
  cout << abs(x-y) << endl;
  return 0;
}

