using namespace std;
ifstream read("filename.txt");
const int lim=1e5+5;
char ch[lim];
int main()
{
    string name,type;
    while(read>>name)
    {
        name[0]='g';
        name[1]='s';
        ifstream in(name);
        ofstream out("listing_"+name);
        while(in>>name)
        {
