You are given natural numbers N and M. Write a program that finds every sequence of length M made by choosing M numbers from 1 to N without repetition.
Input
The first line contains the natural numbers N and M, separated by a space. (1≤M≤N≤8)
Output
Print the sequences that satisfy the condition, one per line. Do not print the same sequence twice, and separate the numbers of a sequence with a space. Print the sequences in increasing lexicographic order.