#include <iostream>
using namespace std;
int main()
{
int num,range;
while (cin >> num >> range)
{
int count = 0, value = 0;//count->計數 value->計算相加總合
for (int i = 0; value <= range; i++)//value <= range -> 查看條件是否符合___有 = why?應付 range = 0 時無法進入迴圈
{
value += num + i;//num + i->數字變化
if (value > range)
break;
else
count++;
// cout << value << ' ';//Text
}
cout << count+1<<endl;//+1 why?在if(value>range) break;時也要將那次紀錄->因為是加上那次if(value>range)才成立
}
}