a, b, c = map(int, input().split()) ans = [] for i in range(a + 1): for j in range(b + 1): d = a - i + b - j p = 10 * j + i for k in range(1, p + 1): if d + (p - k) % 10 + (p - k) // 10 == c: ans.append(k) break if len(ans) == 0: print("Impossible") else: ans.sort() print(ans[0])