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