//XXX nullo
#include <fstream>
#include <stdlib.h>
#include <iostream>
using namespace std;
int main() {
ifstream infile("testo.txt");
ifstream infile1("tabella.txt");
string word;
string word1;
char c;
while (infile >> word)
{if(word[0]=='[')
{char carattere=(word[1]);
cout<<carattere;
while (infile1 >> word1)
{if(word1[0]==carattere)
cout<<"si";
}
}
else cout<<word;
cout<<" ";
}
}
// while (infile1 >> word1)
// {if(word1[0]==carattere)
// cout<<"si";
// }