#include <stdio.h>

int main(void) {
	// your code goes here
	int x=3,n=0;
	do
	{
		x=2*x-1;
		n=n+1;
	}
	while(x<=1000);
	printf("値：%d,%d番目",x,n);
	return 0;
}
