A,B,C = map(int,input().split()) for i in range(1,A+B*10+1): for j in range(A+1): for k in range(B+1): if i <= j+k*10: rm = (j+k*10)-i a = rm//10 + rm%10 if a+(A-j)+(B-k) == C: print(i) exit() print('Impossible')