import sys,itertools as t [all(len(set(s))%2for s in zip(*x))and print(*x)for a in sys.argv[1:]for x in t.combinations(a.split(),3)]