#include <stdio.h>
#include <math.h>

int main() {
    int l, r;
    printf("Enter the values of l and r: ");
    scanf("%d %d", &l, &r);
    
    int max_n = 1;
    for (int n = 2; n <= 32; n++) {
        int a = pow(l, 1.0/n);
        if (pow(a, n) < l) a++; // increase a if a^n < l
        if (pow(a, n) <= r) max_n = n; // update max_n if a^n <= r
    }
    
    printf("The biggest integer n such that l <= a^n <= r is: %d\n", max_n);
    return 0;
}