#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main()
{
string str,s;
int n;
cin >> str >> n;
getchar();
for (int i = 0; i < n; i++)
{
getline(cin,s);
if (s == "#")
{
system("pause");
return 0;
}
else if (s == str)
{
cout << "Welcome in" << endl;
system("pause");
return 0;
}
else
cout << "Wrong password: " <<s<< endl;
}
cout << "Account locked" << endl;
system("pause");
return 0;
}
12-08
914