#include void run(void){ int a,b; scanf("%d%d",&a,&b); printf("%d\n",2*a-(a-b)); return; } int main(void){ run(); return 0; }