Fair Grading

시간 제한1초메모리 제한2048 MB

요약
중간고사 두 개와 기말고사 점수가 주어질 때 25%, 25%, 50% 비중으로 가중 평균을 내고 해당하는 알파벳 성적을 출력한다.
난이도

쉬움10점 중 1점

유형
수학, 구현
정답자
아직 제출이 없습니다

문제

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 xx and yy, as well as their final exam grade zz, calculate their final letter grade for the class. Midterm exams are worth 2525\\% of the final grade each, and the final exam is worth the remaining 5050\\%. Note that no plus or minus grades are given, so all scores [9090\\%, 100100\\%] get A's, all scores [8080\\%, 9090\\%) get B's, all scores [7070\\%, 8080\\%) get C's, all scores [6060\\%, 7070\\%) get D's, and all scores [00\\%, 6060\\%) get F's.

입력

The input consists of a single line containing three integers, xx, yy, and zz (0≤x,y,z≤100)(0 \leq x,y,z \leq 100)---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.

예제2

  1. 예제 1

    입력
    87 93 90
    
    예상 출력
    A
    
  2. 예제 2

    입력
    91 78 56
    
    예상 출력
    C