#include<iostream>
using namespace std;
int main(){
string pwd;
int n;
cin>>pwd>>n;
string temp;
int cnt=0;
getchar(); //接收回车符
while(true){
getline(cin,temp);
cnt++;
if(temp=="#") break;
else if(temp==pwd){
cout<<"Welcome in"<<endl;
break;
}else{
cout<<"Wrong password: "<<temp<<endl;
}
if(cnt==n){
cout<<"Account locked"<<endl;
break;
}
}
return 0;
}
11-13
208
08-22
786
08-20
392