class Program { static void Main(string[] args) { string[] coinList = Console.ReadLine().Split(' '); if (int.Parse(coinList[2]) >= int.Parse(coinList[0]) + int.Parse(coinList[1])) { Console.WriteLine("Impossible"); } else { int oneCoin = int.Parse(coinList[0]); int tenCoin = int.Parse(coinList[1]); int useCoin = (oneCoin+tenCoin) - int.Parse(coinList[2]); int useMoney = oneCoin; useCoin -= useMoney; if (useCoin > 0) { useMoney += useCoin * 10; } Console.WriteLine(useMoney); } } }