include [HTML_REMOVED]
using namespace std;
const int N=1001;
string name[N];
string pwd[N];
string changepwd(string str){
string res;
for(auto c:str){
if(c==‘1’){res+=’@’;}
else if(c==‘0’){res+=’%’;}
else if(c==’l’){res+=’L’;}
else if(c==’O’){res+=’o’;}
else {res+=c;}
//res+=c表示先拼的res后加该字符
}
return res;
}
int main(){
int N;
cin>>N;
int m=0;
for(int i = 0;i<N;i++){
string cur_name,cur_pwd;
cin>>cur_name>>cur_pwd;
string change_pwd = changepwd(cur_pwd);
if(change_pwd!=cur_pwd){//若密码发生了变化,则需要将发生变化后的密码以及对应的名字存起来
name[m]=cur_name;
pwd[m]=change_pwd;
m++;
}
}
if(!m){
if(N==1){
printf("There is 1 account and no account is modified");
}else printf("There are %d accounts and no account is modified",N);
}else{
cout<<m<<endl;
for(int i = 0;i<m;i++){
cout<<name[i]<<' '<<pwd[i]<<endl;
}
}
}