A,B,C = map(int,input().split()) ans = 10**100 for price in range(1, A + B * 10 + 1): for b in range(B + 1): for a in range(A + 1): pay = a + b * 10 if pay < price: continue sagaku = pay - price aa = sagaku % 10 bb = sagaku // 10 coin = ((A + B) - (a + b) + (aa + bb)) if C == coin: ans = min(price,ans) if ans == 10**100: ans = "Impossible" print(ans)