c=[x for x in input()] s=set(c) if len(s)==7: for i in s: if c.count(i)==1: print(i) else: print("Impossible")