#include using namespace std; int main() { unsigned long current, test, lower, upper, orig_lower, orig_upper; int max, cycle; while (cin >> orig_lower >> orig_upper) { lower = orig_lower; upper = orig_upper; if (orig_lower > orig_upper) { lower = orig_upper; upper = orig_lower; } max = 0; for (current = lower; current <= upper; current++) { test = current; for (cycle = 1; test > 1; cycle++) test = (test % 2) ? test * 3 + 1 : test / 2; if (cycle > max) max = cycle; } cout << orig_lower << " " << orig_upper << " " << max << '\n'; } return 0; }