import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int number = (int)(100*Math.random()+1);
Scanner in = new Scanner ( System.in );
int a = 0;
int count = 0;
do {
if (count!=0) {
if ( a>number )
System.out.println ("大了");
if ( a<number )
System.out.println ("小了");
}
a = in.nextInt();
count++;
}while (number!=a);
System.out.println("恭喜你猜对了,猜了" + count + "次");
System.out.println("您所猜的数为" + number);
in.close();
}
}