import java.io.*; import java.util.Scanner; public class Main_yukicoder825 { private static Scanner sc; private static Printer pr; private static void solve() { int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int min = Integer.MAX_VALUE; for (int aa = 0; aa <= a; aa++) { for (int bb = 0; bb <= b; bb++) { int pay = aa + 10 * bb; for (int i = 1; i <= pay; i++) { int cnt = a - aa + b - bb; cnt += (pay - i) / 10; cnt += (pay - i) % 10; if (cnt == c) { // pr.printf("%d %d %d %d%n", aa, bb, pay, i); min = Math.min(min, i); } } } } if (min == Integer.MAX_VALUE) { pr.println("Impossible"); } else { pr.println(min); } } // --------------------------------------------------- public static void main(String[] args) { sc = new Scanner(System.in); pr = new Printer(System.out); solve(); pr.close(); sc.close(); } static class Printer extends PrintWriter { Printer(OutputStream out) { super(out); } } }