import java.util.Arrays; import java.util.Scanner; import java.util.Set; import java.util.TreeSet; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String S = scan.next(); scan.close(); String []w1 = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m"}; String []w2 = {"n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"}; int l1 = w1.length; int []cnt1 = new int[l1]; int []cnt2 = new int[l1]; Arrays.fill(cnt1, 0); Arrays.fill(cnt2, 0); for(int i = 0; i < 13; i++) { String s = S.substring(i, i + 1); for(int j = 0; j < l1; j++) { if(s.equals(w1[j])) { cnt1[j] ++; break; } if(s.equals(w2[j])) { cnt2[j] ++; System.out.println("Impossible"); System.exit(0); } } } Set hash_set = new TreeSet(); int cnt3 = 0; for(int i = 0; i < 13; i++) { if(cnt1[i] > 1) { cnt3 ++; } } if(cnt3 >= 2) { System.out.println("Impossible"); System.exit(0); } if(cnt3 == 0) { for(int i = 0; i < 13; i++) { System.out.println(w1[i]); } System.exit(0); } for(int i = 0; i < 13; i++) { if(cnt1[i] == 0) { hash_set.add(w1[i]); } } for(String t : hash_set) { System.out.println(t); } } }