S=set(input()) if len(S)==13:print("""a b c d e f g h i j k l m""") elif len(S)==12:print(*set("abcdefghijkm")-S) else:print("Impossible")