c#include <bits/stdc++.h> using namespace std; int main(){ cin.tie(NULL); cout.tie(NULL); ios_base::sync_with_stdio(false); long long S; cin >> S; int i = 1; long long tempS = 0; while(1){ if(tempS > S){ cout << i - 2 << "\n"; break; } tempS += i; i++; } return 0; }```