#include <stdio.h>
int main()
{
int n;
scanf("%d", &n);
printf("%d\n", n);
if (n > 0)
{
while (n--)
printf("%d\n", n);
}
else
{
while (n++)
printf("%d\n", n);
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpCnsKCWludCBuOwoJc2NhbmYoIiVkIiwgJm4pOwoJcHJpbnRmKCIlZFxuIiwgbik7CglpZiAobiA+IDApCgl7CgkJd2hpbGUgKG4tLSkKCQkJcHJpbnRmKCIlZFxuIiwgbik7Cgl9CgllbHNlCgl7CgkJd2hpbGUgKG4rKykKCQkJcHJpbnRmKCIlZFxuIiwgbik7Cgl9CglyZXR1cm4gMDsKfQ==