using System;
public class Program
{
public static void Main()
int i = 0;
int j = -1;
while(i < 1000)
j++;
i = i + j +1;
}
Console.WriteLine(j);