#include<iostream>using namespace std;
int main(){ int n, m; while ( cin >> n >> m ) { int sum = n++, count = 1; while ( sum <= m ) { sum += n++; count++; } cout << count << endl; } return 0;}