using System;
using System.Console;
/*using Nemerle.Imperative;
using Nemerle.Utility;*/

def count=int.Parse(ReadLine());

foreach(max in [1..count])
{
	def items=[1..max];
	def itemsReversedIfNeed=if(max%2=0)
		items.reverse()
	else
		items;
	WriteLine(String.Join("-", items))	
}