import java.util.*; class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.nextInt(); if (d >= 10) System.out.println("Impossible"); else { //AとBのみ int combo = 0; int score = 0; for (int i=0; i