for s in open(0):print(s.split()[hash(s)>>4&1])