import java.util.Scanner;
public class M{
public static void main(String[] args){
Scanner in =new Scanner(System.in);
int count=0;
int number=(int)(Math.random()*100+1);//[0,1)——>[1,101)
int a=in.nextInt();
//用while
while(a!=number)
{
if(a>number)
{
System.out.println("很遗憾,你猜大了");
}
else
{
System.out.println("很遗憾,你猜小了");
}
count++;
a=in.nextInt();
}
System.out.println("恭喜你猜对了,你猜了"+count+"次");
//用do{}while;
do{
a=in.nextInt();
count++;
if(a>number)
{
System.out.println("bigger");
}
else if(a<number)
{
System.out.println("smaller");
}
}while(a!=number);
System.out.println("Congratulation!");
}
}