N = list(input()) N.sort() for i in range(len(N)): if (N.count(N[i])==1): print(N[i]) elif (N.count(N[i])!=2): pass else: print("Impossible")