#include using namespace std; int main() { int A, B; cin >> A >> B; if (A < B) { cout << B - A << endl; } else { cout << A - B << endl; } }