import itertools n=int(input()) for x,y,z in itertools.product(range(1,~-n),range(1,~-n),range(1,~-n)): if not n-x-y-z and x<=y<=z:print(x,y,z)