import java.util.Scanner;
public class Pbt
{
public static void main(String[] args)
{
Scanner scanner=new Scanner(System.in);
System.out.println("请输入正整数测试!输入-1或相邻两数相等结束。");
int a=scanner.nextInt();
int b=scanner.nextInt();
while(a != -1 && b !=-1 && a !=b)
{
a=b;
b=scanner.nextInt();
}
}
}