import re

spoonerize = lambda s:re.sub('([^aeiou]+|.+ )'*3,r'\3\2\1',s,1)

for string in 'plaster man', 'blushing crow', 'litigating more', 'strong wrangler', 'def ghi', 'yew fears':
	print(spoonerize(string))