PROGRAMMING:How many good sisters do you have
There are many contacts in Xiao Li's QQ list. He has changed everyone's name. Some of them have words like "good sister" added to the front or back of their names. Please print out all the female "good sisters" of Xiao Li. When printing, please arrange them in ascending order according to their original names. If they have the same names, the younger ones will be in the front; If two people are of the same age, those who become friends earlier are in the front. The title ensures that the good sister logo will not appear in the prefix and suffix at the same time, and "good sister" with the same name and age will not be added on the same day.
###Input format:
The first line gives the string identifying the good sister flag, which does not contain spaces, has a maximum length of 6 and is case insensitive. The second line gives the number n of all contacts in the QQ list (1 ≤ n ≤ 10 $$^ 5 $$), and then the N lines list all contact information. The information format of each line is as follows:
**Note name gender age date of making friends**
The note name should not exceed 30 characters; Gender is represented by characters, f for female, m for male; The date of making friends is expressed in a format such as "2001.01.01".
###Output format:
The first line outputs the number k of good sisters, and then the K line prints out the name, age and date of making friends without the good sister logo.
###Input example:
For example:
```in
hmm
ten
Zoehmm F 28 2001.01.01
hmmBeith F 18 2010.10.21
Zack M 35 1999.09.18
hmmAdam F 21 2010.10.21
Beithhmm F 21 2010.10.21
Chelse F 45 2005.12.03
DaisyHMM F 30 2008.08.05
Eston M 18 2015.03.04
hmmFrany F 8 2018.07.15
JackHM F 7 2017.09.11
```
###Output example:
Output:
```out
six
Adam 21 2010.10.21
Beith 18 2010.10.21
Beith 21 2010.10.21
Daisy 30 2008.08.05
Frany 8 2018.07.15
Zoe 28 2001.01.01
```
answer:If there is no answer, please comment
###Input format:
The first line gives the string identifying the good sister flag, which does not contain spaces, has a maximum length of 6 and is case insensitive. The second line gives the number n of all contacts in the QQ list (1 ≤ n ≤ 10 $$^ 5 $$), and then the N lines list all contact information. The information format of each line is as follows:
**Note name gender age date of making friends**
The note name should not exceed 30 characters; Gender is represented by characters, f for female, m for male; The date of making friends is expressed in a format such as "2001.01.01".
###Output format:
The first line outputs the number k of good sisters, and then the K line prints out the name, age and date of making friends without the good sister logo.
###Input example:
For example:
```in
hmm
ten
Zoehmm F 28 2001.01.01
hmmBeith F 18 2010.10.21
Zack M 35 1999.09.18
hmmAdam F 21 2010.10.21
Beithhmm F 21 2010.10.21
Chelse F 45 2005.12.03
DaisyHMM F 30 2008.08.05
Eston M 18 2015.03.04
hmmFrany F 8 2018.07.15
JackHM F 7 2017.09.11
```
###Output example:
Output:
```out
six
Adam 21 2010.10.21
Beith 18 2010.10.21
Beith 21 2010.10.21
Daisy 30 2008.08.05
Frany 8 2018.07.15
Zoe 28 2001.01.01
```
answer:If there is no answer, please comment