#include <stdio.h> int main() { int a,b; scanf("%d %d",&a,&b); int c = 2*b-a; //a+c == 2*b printf("%d",c); return 0; }