<gh_stars>0
# Lexicographic permutations

from itertools import permutations

def seznam_permutacij():
	return list(permutations(range(10)))[999999]

print(seznam_permutacij())
# Lexicographic permutations

from itertools import permutations

def seznam_permutacij():
	return list(permutations(range(10)))[999999]

print(seznam_permutacij())
# Lexicographic permutations