from itertools import permutations

input = ('s', 't', 'u', 'f', 'f')
length = 2

for p in permutations(input, r=length):
	print(p)