#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (int)(n); ++i)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)

int main() {
  int n;
  cin >> n;
  int to;
  rep(i,10000){
    if(i*(i+1)/2>=n){
      to=i;
      break;
    }
  }
  for (int i =to; i >0; i--){
    if(n>0&&n-i>=0){
      cout<<i<<endl;
      n-=i;
    }
  }
  
}