n = int(input()) if n == 1 or n == 2: print('-1') else: print('3 2 1',end=' ') for i in range(4,n+1): print(i,end=' ')