#include <stdio.h>

int main(void) {
	// your code goes here
    int score;
    printf("请输入分数：");
    scanf("%d", &score);

    // 先判断分数是否合法
    if (score < 0 || score > 100) {
        printf("error!\n");
    } else if (score >= 85) {
        printf("A\n");
    } else if (score >= 70) {
        printf("B\n");
    } else if (score >= 60) {
        printf("C\n");
    } else {
        printf("D\n");
    }
    return 0;
}

