n=int(input()) anslist=[1]*n anslist[0]=3 if sum(anslist)%3==0: anslist[1]+=1 elif sum(anslist)%3==2: anslist[1]+=2 print(anslist)