#include using namespace std; int n; int main() { cin >> n; int delta = 1 + 4 * 2 * n; int x = ceil((sqrt(delta) - 1) / 2); cout << x << endl; for (int i = 1; i <= x; i++) { cout << i << " "; } return 0; }