LearnPy Hub
← Modules & the Standard Library problems
Hard

Grades with bisect

Grade boundaries: below 40 F, 40–49 D, 50–59 C, 60–69 B, 70–79 A, 80+ A+. Read marks on one line and print each grade, using bisect.bisect.

Input

One line of integers 0–100.

Output

One line.

Sample 1

Input
33 40 55 69 70 99
Output
F D C B A A+

Sample 2

Input
0
Output
F
solution.py
Output appears here
Grades with bisect · Python practice problem · LearnPy Hub