Solution to the problem number r2 of Kattis - r2.

Any questions do not hesitate to contact.

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int a,b;
    while(scanf("%d%d",&a,&b)==2) cout<<b*2-a<<endl;
    return 0;
}

Don't miss anything.

Keep in touch with Isaac Lozano Osorio!