#K9096. Grade Calculator
Grade Calculator
Grade Calculator
You are given scores for students, where each student has exactly five exam scores. The final grade for each student is determined by computing the average of the five scores. The grade boundaries are defined as follows:
\(A\): average \(\ge 90\)
\(B\): \(80 \le \text{average} < 90\)
\(C\): \(70 \le \text{average} < 80\)
\(D\): \(60 \le \text{average} < 70\)
\(F\): average \( < 60 \)
Your task is to compute the final grade for each student based on these boundaries.
inputFormat
The input is given via standard input (stdin).
The first line contains an integer \(T\) representing the number of students. Each of the next \(T\) lines contains exactly five integers separated by spaces, representing the scores of a student.
outputFormat
Print the final grade for each student on a separate line via standard output (stdout).
## sample1
95 96 97 94 98
A
</p>