#include <iostream> using namespace std; int main() { int n, i = 0; cin >> n; while((1 + i * ((i - 1) / 2 + 1)) / 2 < n) { i++; cout << i << endl; } return 0; }