PROGRAMMING:Big members
At the end of the year, a supermarket carries out statistics on members' consumption in a year, and presents a supermarket stored value card with a value of 100 to super members whose consumption amount reaches s level. According to the regulations, the members whose annual consumption quota reaches 10000 are S-class, those whose annual consumption quota reaches 5000-9999 are B-class, those whose annual consumption quota reaches 1000-4999 are C-class, and those whose annual consumption quota is less than 1000 are D-class. Please help the supermarket to record the membership grade and count the number of members who can be given stored value cards.
###Input format:
Enter a positive integer n (n < = 10) in the first line to represent the number of members, and then n lines. Each line contains a member information, including membership card number (a number string with no space of 9), name (a string of characters with no space of 20) and annual consumption (an integer greater than or equal to 0).
###Output format:
The grade information of all members is output according to the input order. One member information takes up one line, including membership card number, name and consumption grade, separated by a space in the middle, and then the number of people who can get free stored value card is output in the next line.
###Input example:
```in
two
000001 li 10000
000002 zhang 9999
```
###Output example:
The corresponding output is given here. For example:
```out
000001 li S
000002 zhang B
one
```
answer:If there is no answer, please comment
###Input format:
Enter a positive integer n (n < = 10) in the first line to represent the number of members, and then n lines. Each line contains a member information, including membership card number (a number string with no space of 9), name (a string of characters with no space of 20) and annual consumption (an integer greater than or equal to 0).
###Output format:
The grade information of all members is output according to the input order. One member information takes up one line, including membership card number, name and consumption grade, separated by a space in the middle, and then the number of people who can get free stored value card is output in the next line.
###Input example:
```in
two
000001 li 10000
000002 zhang 9999
```
###Output example:
The corresponding output is given here. For example:
```out
000001 li S
000002 zhang B
one
```
answer:If there is no answer, please comment