a, b, c = map(int, input().split()) l = [] for i in range(a+1): for j in range(-a//10, b+1): if (a-i) + (b-j) == c: l.append([i, j]) # print(l) l2 = [] for i, j in l: if i + 10*j > 0: l2.append(i + 10*j) # print(l2) if len(l2) == 0: print('Impossible') else: print(min(l2))