A,B,C=map(int,input().split()) num_ans=[] for i in range(-10,A+1): for j in range(-10,B+1): if ((A-i)+(B-j))==C: num_ans.append([i,j]) ans=[] for i,j in num_ans: if (i+10*j)>0: ans.append(i+j*10) if len(ans)==0: print("Impossible") else: print(min(ans))