import random
from random import shuffle
import zlib
import sys
import timeit
import itertools

class Circle:
    def rec(self):

        a= [1,2,3]
        print list(itertools.permutations(a)) #using permutations to print all the combinations






def main():
    l = Circle()

    # j=NewYorker()

    l.rec()
if __name__=="__main__":
    main()