s = str(input()) t = set(s) for i in t: if s.count(i) == 1: print(i) break else: print("Impossible")