#include <stdio.h>

int main() {
   int a,b;
   scanf("%d %d",&a,&b);//第一项和;第二项;
   int c=b-a;//差值
    printf("%d",b+c);








}