import java.util.ArrayList;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
reverse(a);
}
static int reverse(int a ) {
if(a == 0){
System.out.println(a);
return 0;
}
System.out.print(a + " ");
return reverse(a-1);
}
}
0