import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int ans = Integer.MAX_VALUE / 2; for (int i = 1; i <= a + b * 10; i++) { for (int j = 0; j <= a; j++) { for (int k = 0; k <= b; k++) { int value = j + 10 * k; if (value == 0) { continue; } if (getCount(value - i) + a - j + b - k == c) { ans = Math.min(ans, i); } } } } if (ans >= Integer.MAX_VALUE / 2) { System.out.println("Impossible"); } else { System.out.println(ans); } } static int getCount(int x) { if (x < 0) { return Integer.MAX_VALUE / 2; } else { return x % 10 + x / 10; } } }