#include using namespace std; using ll = long long; int main() { long long A,B; cin >> A >> B; long long x= A - (A * 2); x -= B; cout << abs(x) << endl; }