#P395. 练68.3  车牌问题

练68.3  车牌问题

Description

The Beijing Vehicle Management Office issues a license plate for each registered car. The license plate number consists of six characters, such as A99452A99452 or B88888B88888. The first character from the left is an uppercase English letter (like AA, BB, CC, etc.), indicating whether the car belongs to the urban area or suburban area of Beijing. The remaining five characters are digits. It is assumed that plates starting with letters AA, BB, CC, DD, EE, FF, GG, RR, SS, TT represent urban area cars, while plates starting with other letters represent suburban area cars.
Please help the Vehicle Management Office determine how many of the given license plates belong to suburban cars in Beijing.

Input Format

Line 1 contains a positive integer NN (1N1051 \leq N \leq 10^5), indicating the number of license plates.
The next NN lines each contain a license plate number. It is guaranteed that all given license plates are unique.

Output Format

The number of suburban license plates.

Sample

3
G54672
Q87680
P77771
2