#K72787. Ranking Class Determination

    ID: 33831 Type: Default 1000ms 256MiB

Ranking Class Determination

Ranking Class Determination

Given an integer representing the points a contestant has earned, determine their ranking class. The ranking is decided using the following criteria expressed in LaTeX:

  • $0 \le P < 100$: Output E
  • $100 \le P < 200$: Output D
  • $200 \le P < 300$: Output C
  • $300 \le P < 400$: Output B
  • $400 \le P < 500$: Output A
  • $500 \le P \le 1000$: Output S

If the provided points do not satisfy $0 \le P \le 1000$, the program should output "Error".

inputFormat

The input consists of a single integer on one line, representing the points scored by a contestant.

outputFormat

Output a single character corresponding to the ranking class. If the input integer is not within the range $[0, 1000]$, output "Error".

## sample
50
E