A,B,C = map(int,input().split()) ans = 10**100 for i in range(A + 1): for j in range(B + 1): if (A + B - C) == (i + j - (i - i % 10) // 10): ans = min(ans, i % 10 + 10 * j) if ans == 10**100 or ans == 0: ans = "Impossible" print(ans)