#include #include #include using namespace std; typedef unsigned long long ULL; const int MAXN = 100000; //P <= 33 int P,N; ULL ar[MAXN]; void init() { cin >> P >> N; for(int i=0; i> ar[i]; } int getIteration(ULL number) { ULL from=1, to=1; for(int i=0; i= highMid) from = highMid; else break; iteration++; } return iteration; } void solve() { for(int i=0; i lim) break; tmp = getIteration(a); for(int j=0; j> a; printf("%d\n", getIteration(a)); } */ return 0; }