#include #include #include #include using namespace std; int main() { long long n, m; while (cin >> n >> m) { cout << 2*n-m<