#include<bits/stdc++.h>usingnamespace std;intmain(){int n;scanf("%d",&n);
string name[n],pwd[n];
vector<int> v;for(int i=0;i<n;i++){int flag=0;
cin>>name[i]>>pwd[i];for(int j=0;j<pwd[i].length();j++){switch(pwd[i][j]){case'1':pwd[i][j]='@';flag=1;break;case'0':pwd[i][j]='%';flag=1;break;case'l':pwd[i][j]='L';flag=1;break;case'O':pwd[i][j]='o';flag=1;break;}}if(flag==1) v.push_back(i);}int size=v.size();if(size==0){if(n==1)printf("There is 1 account and no account is modified");elseprintf("There are %d accounts and no account is modified",n);}else{printf("%d\n",size);for(int i=0;i<size;i++){
cout<<name[v[i]]<<" "<<pwd[v[i]]<<endl;}}return0;}