r=readLn m@main=do r s<-getLine n<-r putStrLn$([1+n..0]>>reverse s)++do[1..n];s m