n = int(input()) s = [3] for i in range(n - 1): s.append(1) while sum(s) % 3 != 1: s[-1] += 1 print(*s)