All problems

Problem 777

Grade from Marks

Easy · 10 pts · Basics, Conditionals

Problem

A student's marks M (from 0 to 100) are turned into a grade: A for 90 or more, B for 80 to 89, C for 70 to 79, D for 60 to 69, E for 50 to 59, and F for anything below 50. Print the grade. Check the thresholds from the highest down, so that each mark matches the first band it reaches.

Input

A single integer M.

Output

Print the grade letter.

Constraints

0 <= M <= 100

Example input

85

Example output

B

Explanation

85 is at least 80 but below 90, so it falls in the B band and the answer is B.

Every problem here can be used in a RelayTrixCode team match. Create a room.

Previous: Vowel or Consonant Next: Simple Interest