PROGRAMMING:group photo
####Description
Xiao Yun and his friends went to climb Xiangshan mountain. They were intoxicated by the beautiful scenery and wanted to take a group photo. If they stand in a row, boys are all on the left (from the photographer's point of view), and girls are all on the right in the order from short to high, and from left to right in the order from high to short, what's the effect of their group photo (everyone's height is different)?
####Input
The first line is the number n (2 < = n < = 40, with at least one male and one female).
Each line is followed by N lines. Enter a person's gender (male or female) and height (floating-point number, in meters). The two data are separated by spaces.
####Output
N floating-point numbers to simulate the height of each person from left to right in the eyes of the photographer after standing in line. Each floating-point number shall be reserved to 2 decimal places, and the adjacent two numbers shall be separated by a single space.
####Sample input
```in
six
male 1.72
male 1.78
female 1.61
male 1.65
female 1.70
female 1.56
```
####Sample output
```out
1.65 1.72 1.78 1.70 1.61 1.56
```
####Source
http://noi.openjudge.cn/ch0110/07/
answer:If there is no answer, please comment
Xiao Yun and his friends went to climb Xiangshan mountain. They were intoxicated by the beautiful scenery and wanted to take a group photo. If they stand in a row, boys are all on the left (from the photographer's point of view), and girls are all on the right in the order from short to high, and from left to right in the order from high to short, what's the effect of their group photo (everyone's height is different)?
####Input
The first line is the number n (2 < = n < = 40, with at least one male and one female).
Each line is followed by N lines. Enter a person's gender (male or female) and height (floating-point number, in meters). The two data are separated by spaces.
####Output
N floating-point numbers to simulate the height of each person from left to right in the eyes of the photographer after standing in line. Each floating-point number shall be reserved to 2 decimal places, and the adjacent two numbers shall be separated by a single space.
####Sample input
```in
six
male 1.72
male 1.78
female 1.61
male 1.65
female 1.70
female 1.56
```
####Sample output
```out
1.65 1.72 1.78 1.70 1.61 1.56
```
####Source
http://noi.openjudge.cn/ch0110/07/
answer:If there is no answer, please comment