import java.util.*;
public class k32 {
public static void main(String[] args){
Scanner in=new Scanner(System.in);
int id=123,pwd=456;
System.out.println("\t 登录");
System.out.println("======================");
int i=1;
while(i<=3){
System.out.println("账号:");
int a=in.nextInt();
System.out.println("密码:");
int b=in.nextInt();
if(a==id&&b==pwd){
System.out.println("***登录成功***");
break;
}
else{
System.out.println("账号或密码有误,请重新登录");
}
i++;
}
if(i>3){
System.out.println("您的操作超过3次,今日不允许再登录!");
}
}
}