1908 售房业绩


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 32M

Problem types
Allowed languages
C, C++, Java, Python

Description

老王的工作是估算职员的售房业绩,分出等级,以作为员工奖金的依据。在1个月内,员工售房0到9套,则记为E;售房10到19套记为D;售房20到29套记为C;30到39套记为B;40到49套记为A;50到100套记为S。请你帮他设计一个程序减轻其工作。

Input

多个整数。

Output

对每个整数,输出一个售房业绩的等级,单独占一行,若输入数据大于100或小于0,则输出ERROR。

Sample

Input

42
15
150
-8

Output

A
D
ERROR
ERROR

Source: qn


Comments

There are no comments at the moment.