/*已知一个数求其连续正整数和.
*autor : zqh 2009.3.13
*/
import java.util.*;
class Baidu_1
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
System.out.println("please input a number:" );
int n = sc.nextInt();
int i,j,sum;
boolean flag = true;
for ( i = 1 ; i <= n/2 ;i++ )
{
for (j = i ,sum = 0; sum <= n;j++ )
{
sum += j;
if(sum == n)
{
for ( int k = i ; k<=j;k++)
{
System.out.print(k + " ");
}
System.out.println();
flag = false;
}
}
}
if(flag == true)
System.out.println("none");
}
}