n=int(input()) ans=set() #x=y=z i=0 while 3*(i**2)<=n: if 3*(i**2)==n: ans.add((i,i,i)) i+=1 #x=y