

Time Limit: 2 sec / Memory Limit: 256 MB
配点 : 点
問題文
AtCoder Beginner Contestが始まってから早数十年。
コンテストは 回目から順に ABC001
,ABC002
, と名付けられてきましたが、 回目のコンテスト ABC999
を終え、これからのコンテストの名前をどうするかという問題が生じました。
そこで、 回目から 回目のコンテストを順に ABD001
,ABD002
,,ABD999
と名付けることとなりました。
以上 以下の整数 が与えられるので、 回目のコンテストの名前の最初の 文字を出力してください。
制約
- は整数
入力
入力は以下の形式で標準入力から与えられる。
出力
回目のコンテストの名前の最初の 文字を出力せよ。
入力例 1Copy
999
出力例 1Copy
ABC
回目のコンテストの名前は ABC999
です。
入力例 2Copy
1000
出力例 2Copy
ABD
回目のコンテストの名前は ABD001
です。
入力例 3Copy
1481
出力例 3Copy
ABD
回目のコンテストの名前は ABD482
です。
Score : points
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 -th round ABC999
, a problem occurred: how the future rounds should be labeled?
In the end, the labels for the rounds from the -th to the -th are decided: ABD001
, ABD002
, , ABD999
.
You are given an integer between and (inclusive). Print the first three characters of the label of the -th round of AtCoder Beginner Contest.
Constraints
- is an integer.
Input
Input is given from Standard Input in the following format:
Output
Print the first three characters of the label of the -th round of AtCoder Beginner Contest.
Sample Input 1Copy
999
Sample Output 1Copy
ABC
The -th round of AtCoder Beginner Contest is labeled as ABC999
.
Sample Input 2Copy
1000
Sample Output 2Copy
ABD
The -th round of AtCoder Beginner Contest is labeled as ABD001
.
Sample Input 3Copy
1481
Sample Output 3Copy
ABD
The -th round of AtCoder Beginner Contest is labeled as ABD482
.