링크 : https://www.acmicpc.net/problem/2292
/*
문제 : 벌집
링크 : https://www.acmicpc.net/problem/2292
*/
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
/*
1, 6, 12, 18, 24
1, 7, 19, 37, 61
*/
int main() {
int n;
cin >> n;
if (n == 1) cout << 1;
else{
n -= 1;
int cnt = 0;
while(n > 0){
n = n - 6 * cnt;
cnt += 1;
}
cout << cnt;
}
return 0;
}