PROGRAMMING:Sister circle of telephone chat
During the COVID-19, everyone could not get together, so the sisters began to make phone calls. Sisters talk to each other on the phone, naturally become a circle. In order to distinguish which are true friends and which are plastic sisterhood, we track the phone records and determine the degree of intimacy by analyzing the call time. We set the sum of all the telephone time between two people as a measure of intimacy. A sister circle is composed of three or more girls, and the sum of all the members' talk time exceeds a certain threshold K. The one with the longest talk time in the sister circle is the core of the circle. Now for some call lists, please find out the number of sister circles and the core of sister circles.
###Input format:
In the first line, there are two positive integers n and K no more than 1000, which represent the number of calls and the threshold value respectively. In the following N lines, the telephone information is given in the following format:
name1 name2 time
Name1 and Name2 use three capital letters to represent a girl, and time is an integer no more than 1000, indicating the length of the conversation between them.
###Output format:
For each group of input, output the number of sister circles in the first line. Then the output of each sister circle and the number of big sister, separated by a space. Let's assume that the eldest sister in each sisterhood is the only one. The output should be in ascending order according to the name of the eldest sister.
###Input sample 1:
Here is a set of inputs. For example:
```in
8 59
AAA BBB 10
BBB AAA 20
AAA CCC 40
DDD EEE 5
EEE DDD 70
FFF GGG 30
GGG HHH 20
HHH FFF 10
```
###Output sample 1:
The corresponding output is given here. For example:
```out
two
AAA 3
GGG 3
```
###Input sample 2:
Here is a set of inputs. For example:
```in
8 70
AAA BBB 10
BBB AAA 20
AAA CCC 40
DDD EEE 5
EEE DDD 70
FFF GGG 30
GGG HHH 20
HHH FFF 10
```
###Output sample 2:
The corresponding output is given here. For example:
```out
0
```
answer:If there is no answer, please comment
###Input format:
In the first line, there are two positive integers n and K no more than 1000, which represent the number of calls and the threshold value respectively. In the following N lines, the telephone information is given in the following format:
name1 name2 time
Name1 and Name2 use three capital letters to represent a girl, and time is an integer no more than 1000, indicating the length of the conversation between them.
###Output format:
For each group of input, output the number of sister circles in the first line. Then the output of each sister circle and the number of big sister, separated by a space. Let's assume that the eldest sister in each sisterhood is the only one. The output should be in ascending order according to the name of the eldest sister.
###Input sample 1:
Here is a set of inputs. For example:
```in
8 59
AAA BBB 10
BBB AAA 20
AAA CCC 40
DDD EEE 5
EEE DDD 70
FFF GGG 30
GGG HHH 20
HHH FFF 10
```
###Output sample 1:
The corresponding output is given here. For example:
```out
two
AAA 3
GGG 3
```
###Input sample 2:
Here is a set of inputs. For example:
```in
8 70
AAA BBB 10
BBB AAA 20
AAA CCC 40
DDD EEE 5
EEE DDD 70
FFF GGG 30
GGG HHH 20
HHH FFF 10
```
###Output sample 2:
The corresponding output is given here. For example:
```out
0
```
answer:If there is no answer, please comment