a set of n people(say a,b,c,d) need to assemble as two different teams in
two different rooms (say r1 and r2) to attend discuss two different
topics. participants are given options to pick the room of their interest,
print all the possible ways in which they can conduct the meetings.(while
printing the output, arrange the possiblities in such a way that no. of
people in r1 is in ascending order, and when the no. of people in r1 are
same, the groups are sorted based on their alphabetical order. note that a
set itself is printed as sorted character list. also assume 2<=n<=26)
sample input:
2
output:
- ab
a b
b a
ab -