#include <iostream> using namespace std; int main() { int n; int b = 0; int i; cin >> n; for (i = 1; n <= b; i++) b += i; cout << n; }