#include <iostream>
using namespace std;
int main() {
unsigned long long n;
cin >> n;
unsigned long long N = 0, bloques = 0;
for(int i = 1; i < 100; i++){
bloques += i;
if(bloques > n){
break;
}
N++;
}
cout << N << "\n";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cgl1bnNpZ25lZCBsb25nIGxvbmcgbjsKCWNpbiA+PiBuOwoJCgl1bnNpZ25lZCBsb25nIGxvbmcgTiA9IDAsIGJsb3F1ZXMgPSAwOwoJCglmb3IoaW50IGkgPSAxOyBpIDwgMTAwOyBpKyspewoJCWJsb3F1ZXMgKz0gaTsKCQlpZihibG9xdWVzID4gbil7CgkJCWJyZWFrOwoJCX0KCQlOKys7Cgl9CgkKCWNvdXQgPDwgTiA8PCAiXG4iOwoJCglyZXR1cm4gMDsKCQp9