#include <bits/stdc++.h>
using namespace std;

int main(){
  const int Smax= 10000;
  int N;
  cin >> N;

  int P_remain= N;
  int S= Smax;
  while(P_remain > 0){
    while(S*(S-1)/2 >= P_remain){
      S--;
    }

    cout << S << endl;
    P_remain-= S;
  }
}