while 1: s=i=c=1 for x in raw_input().split():c=c*(i-11)/i;i+=1;s-=int(x)*c print~-s