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