#include<iostream>
#include<math.h>
#include<algorithm>
#include<queue>
#include<map>
#include<set>
#include<stack>
#include<string>
#include<vector>
using namespace std;
#define INF 100000000
#define maxn 100010
bool modefy[maxn]={false};
struct team{
string id;
string password;
bool modefy;
};
int main()
{ team temp;
int num;
string str;
cin>>num;
cin.ignore();
vector<team> result;
int time=0;
for(int j=0;j<num;j++){
cin>>temp.id>>str;
temp.modefy=false;
for(int i=0;i<str.size();i++)
{
if(str[i]=='1') str[i]='@', temp.modefy=true;//注意这边一定要是但括号
else if(str[i]=='0') str[i]='%',temp.modefy=true;
else if(str[i]=='O') str[i]='o',temp.modefy=true;
else if(str[i]=='l') str[i]='L',temp.modefy=true;
}
if(temp.modefy) time++;
temp.password=str;
result.push_back(temp);
}
if(time==0) {
cout<<"There ";
if(num==1||num==0) cout<<"is ";
else cout<<"are ";
cout<<num;
if(num==1||num==0) cout<<" account ";
else cout<<" accounts ";
cout<<"and no account is modified";}
else
{
cout<<time<<endl;
for(int i=0;i<num;i++)
if(result[i].modefy==true) cout<<result[i].id<<" "<<result[i].password<<endl;
}
return 0;
}
#include<math.h>
#include<algorithm>
#include<queue>
#include<map>
#include<set>
#include<stack>
#include<string>
#include<vector>
using namespace std;
#define INF 100000000
#define maxn 100010
bool modefy[maxn]={false};
struct team{
string id;
string password;
bool modefy;
};
int main()
{ team temp;
int num;
string str;
cin>>num;
cin.ignore();
vector<team> result;
int time=0;
for(int j=0;j<num;j++){
cin>>temp.id>>str;
temp.modefy=false;
for(int i=0;i<str.size();i++)
{
if(str[i]=='1') str[i]='@', temp.modefy=true;//注意这边一定要是但括号
else if(str[i]=='0') str[i]='%',temp.modefy=true;
else if(str[i]=='O') str[i]='o',temp.modefy=true;
else if(str[i]=='l') str[i]='L',temp.modefy=true;
}
if(temp.modefy) time++;
temp.password=str;
result.push_back(temp);
}
if(time==0) {
cout<<"There ";
if(num==1||num==0) cout<<"is ";
else cout<<"are ";
cout<<num;
if(num==1||num==0) cout<<" account ";
else cout<<" accounts ";
cout<<"and no account is modified";}
else
{
cout<<time<<endl;
for(int i=0;i<num;i++)
if(result[i].modefy==true) cout<<result[i].id<<" "<<result[i].password<<endl;
}
return 0;
}