喜欢我python倒序切片吗

n=int(input())

if(n<3):
    print(-1)
    exit(0)

a=[i for i in range(1,n+1)]
a=a[:1]+a[:0:-1]
print(*a)