#include<bits/stdc++.h>

using namespace std;
typedef long long ll;
#define rrep1(i,n) for(ll i=n;i>=1;i--)

int main(){
	ll N; cin>>N;
	ll i=0;
	while((1+i)*i<2*N){
		i++;
	}
	ll W=((i+1)*i)/2-N;//削る点数
	rrep1(k,i){
		if(W<k) cout<<k<<endl;
		else W-=k;
	}
}