def func(pay, price, A, B, C): #pay: a, b change = pay[0] + 10 * pay[1] - price if change < 0: return None else: one_coin = (change) % 10 ten_coin = (change) // 10 coins = A - pay[0] + one_coin + B - pay[1] + ten_coin if coins == C: return price else: return None A, B, C = map(int, input().split(' ')) num_list_A = [i for i in range(A + 1)] num_list_B = [i for i in range(B + 1)] pay_combos = list(product(num_list_A, num_list_B)) price = [func(pay, price, A, B, C) for pay in pay_combos for price in range(1, A + B * 10) if func(pay, price, A, B, C) is not None] if not price: print('Impossible') else: print(sorted(price)[0])