Given natural numbers N and M, write a program that finds every sequence of length M that satisfies the conditions below.
A sequence made of M numbers chosen from the natural numbers 1 to N
The same number may be chosen more than once.
The chosen sequence must be non-decreasing.
A sequence A of length K is non-decreasing if it satisfies A1≤A2≤⋯≤AK−1≤AK.
Input
The first line contains the natural numbers N and M. (1≤M≤N≤8)
Output
Print one sequence that satisfies the conditions per line. Do not print the same sequence twice, and separate the elements of each sequence with a space.
Print the sequences in increasing lexicographic order.