AtCoder Beginner Contest 099
A
ABD
AtCoder
⌀ 0
原题
←B →
翻译中…

Problem Statement

翻译中…

Decades have passed since the beginning of AtCoder Beginner Contest.

翻译中…

The contests are labeled as ABC001, ABC002, $...$ from the first round, but after the $999$-th round ABC999, a problem occurred: how the future rounds should be labeled?

翻译中…

In the end, the labels for the rounds from the $1000$-th to the $1998$-th are decided: ABD001, ABD002, $...$, ABD999.

翻译中…

You are given an integer $N$ between $1$ and $1998$ (inclusive). Print the first three characters of the label of the $N$-th round of AtCoder Beginner Contest.

翻译中…

Constraints

翻译中…
  • $1 \leq N \leq 1998$
  • $N$ is an integer.
翻译中…

Input

翻译中…

Input is given from Standard Input in the following format:

翻译中…

N

翻译中…

Output

翻译中…

Print the first three characters of the label of the $N$-th round of AtCoder Beginner Contest.

翻译中…

样例

Input #1
999
Output #1
ABC
The $999$-th round of AtCoder Beginner Contest is labeled as `ABC999`.
Input #2
1000
Output #2
ABD
The $1000$-th round of AtCoder Beginner Contest is labeled as `ABD001`.
Input #3
1481
Output #3
ABD
The $1481$-th round of AtCoder Beginner Contest is labeled as `ABD482`.
题目信息
题号
abc099_a
时间限制
2 s
内存限制
256 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。