a,b=map(int,input().split())
c=b-a+b
print(c)