A, B, C = map(int, input().split()) def shrink_up(x): if x >= 10: return x//10 + x%10 else: return x nokori_moneys = {} for a in range(A+1): for b in range(B+1): money = a + 10*b if money == 0: continue nokori = B-b + shrink_up(A-a) if nokori_moneys.get(nokori) is None: nokori_moneys[nokori] = set() nokori_moneys[nokori].add(money) if nokori_moneys.get(C) is not None: print(min(nokori_moneys[C])) else: print('Impossible')