https://www.acmicpc.net/problem/2292
using System;
class Program
{
static void Main() {
string s=Console.ReadLine();
int n=int.Parse(s);
int a=1;
int t=1;
if(n==1) Console.Write(1);
else{
while(true){
if(n<a){
Console.Write(t);
break;
}
else if(n==a){
Console.Write(t);
break;
}
a+=6*t;
t++;
}
}
}
}