Fair Grading
시간 제한1초메모리 제한2048 MB
중간고사 두 개와 기말고사 점수가 주어질 때 25%, 25%, 50% 비중으로 가중 평균을 내고 해당하는 알파벳 성적을 출력한다.
문제
It is well known that Mines students have problems with adding. The complex algorithms they learn crowd out basic arithmetic operations. Thus, the Mines professors asked you to automate the calculation and assignment of final letter grades in order to stop the teaching assistants from messing up everyone's grades! Given a student's two midterm exam grades and , as well as their final exam grade , calculate their final letter grade for the class. Midterm exams are worth of the final grade each, and the final exam is worth the remaining . Note that no plus or minus grades are given, so all scores [, ] get A's, all scores [, ) get B's, all scores [, ) get C's, all scores [, ) get D's, and all scores [, ) get F's.
입력
The input consists of a single line containing three integers, , , and ---the student's grades on the first midterm, second midterm, and final exam, respectively.
출력
The first and only line of output should contain a single character, the letter grade achieved by the student.