Problem:


Score : 100 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 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.

Sample Input 1

999

Sample Output 1

ABC

The 999-th round of AtCoder Beginner Contest is labeled as ABC999.

Sample Input 2

1000

Sample Output 2

ABD

The 1000-th round of AtCoder Beginner Contest is labeled as ABD001.

Sample Input 3

1481

Sample Output 3

ABD

The 1481-th round of AtCoder Beginner Contest is labeled as ABD482.



Sample input:
999


Sample output:
ABC

Submission status: Accepted

Solution code:
s=input()
if int(s) < 1000:
    print("ABC")
else:
    print("ABD")

Submission status: Accepted

Solution code:
N = int(input())
ans = "AB"

if N//1000 == 1:
    print(ans + "D")
else:
    print(ans + "C")

Submission status: Accepted

Solution code:
n = int(input())
out = "ABC" if n<=999 else "ABD"
print(out)

Submission status: Accepted

Solution code:
no = int(input())
if no >= 1000:
    print("ABD")
else:
    print("ABC")

Submission status: Accepted

Solution code:
times = int(input())
if times < 1000:
    print('ABC')
else:
    print('ABD')

Submission status: Accepted

Solution code:
#coding:utf-8

N = int(input())

if N <= 999:
    print("ABC")

else:
    print("ABD")

Submission status: Accepted

Solution code:
if int(input()) > 999:
    print('ABD')
else:
    print('ABC')

Submission status: Accepted

Solution code:
N = int(input())
if N <= 999:
	print("ABC")
if N > 999:
	print("ABD")

Submission status: Accepted

Solution code:
n=int(input())
if n <1000:
    print("ABC")
else:
    print("ABD")

Submission status: Accepted

Solution code:
import sys
if __name__ == "__main__":
    N = int(input())
    buf = (N-1) // 999
    if N == 1 or buf == 0:
        print('ABC')
        sys.exit()
    elif buf == 1:
        print('ABD')
        sys.exit()
    else:
        print('ABE')
        sys.exit()

Submission status: Accepted

Solution code:
N = int(input())

if N - 999 <= 0:
  print("ABC")
else:
  print("ABD")

Submission status: Accepted

Solution code:
N = int(input())

if N > 999:
    print('ABD')
else:
    print('ABC')

Submission status: Accepted

Solution code:
input_num = int(input())

if input_num < 1000:
    print("ABC")

else:
    print("ABD")

Submission status: Accepted

Solution code:
# your code goes here
N = int(input())

if N > 999:
	print("ABD")
else:
	print("ABC")

Submission status: Accepted

Solution code:
n = int(input())
if n//1000 == 0 :
    pre = 'ABC'
else :
    pre = 'ABD'

print(pre)

Submission status: Accepted

Solution code:
n = int(input())
if n < 1000:
    print("ABC")
else:
    print("ABD")

Submission status: Accepted

Solution code:
n = int(input())
if n >=1000:
    print("ABD")
else:
    print("ABC")

Submission status: Accepted

Solution code:
#入力
N = int(input())
#nが1000未満ならABC,そうでなければABD
if N < 1000:
    print("ABC")
else:
    print("ABD")

Submission status: Accepted

Solution code:
N = int(input())

result = ''
if N >= 1000:
    print('ABD')
else:
    print('ABC')

Submission status: Accepted

Solution code:
N=int(input())

if N<=999:
    print("ABC")

else:
    print("ABD")

Submission status: Accepted

Solution code:
n = int(input())
if n <=999:
    print("ABC")
else:
    print("ABD")

Submission status: Accepted

Solution code:
n = int(input())

if 1 <= n < 1000:
    print('ABC')
else:
    print('ABD')

Submission status: Accepted

Solution code:
n = int(input())

if(n < 1000): print("ABC")
else: print("ABD")

Submission status: Accepted

Solution code:
N = int(input())

if(N>999):
        print("ABD")
else:
        print("ABC")

Submission status: Accepted

Solution code:
# coding: utf-8

num = int(input())

if 0 < num < 1000:
    print('ABC')
elif 1000 <= num < 1999:
    print('ABD')

Submission status: Accepted

Solution code:
a = int(input())
if a >= 1000:
    print("ABD")
else:
    print("ABC")

Submission status: Accepted

Solution code:
if int(input()) >= 1000:
    print('ABD')
else:
    print('ABC')

Submission status: Accepted

Solution code:
#!/Library/Frameworks/Python.framework/Versions/3.5/bin/python3

n = int(input())

if n < 1000:
    print('ABC')
else:
    print('ABD')

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-

n = int(raw_input())

if n > 999: print "ABD"
else: print "ABC"

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

import os
import sys

def main():
    n = int(input())
    c = [
        "C",
        "D",
        "E",
        "F",
        "G",
        "H",
        "I",
        "J",
        "K",
        "L",
    ]
    print("AB" + c[n // 1000])

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
if 1000 > int(input()):
  print("ABC")
else:
  print("ABD")

Submission status: Accepted

Solution code:
n = int(input())
if n <= 999:
    print("ABC")
elif n > 999:
    print("ABD")

Submission status: Accepted

Solution code:
N=input()
print "ABC" if N<=999 else "ABD"

Submission status: Accepted

Solution code:

n = int(input())
if n < 1000:
    print('ABC')
else:
    print('ABD')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 
import math
import sys
import itertools
import numpy as np

n =int(input())

if n > 999 :
    print("ABD")
else :
    print("ABC")

Submission status: Accepted

Solution code:
n = int(input())
if n >= 0 and n <= 999:
    print('ABC')
else:
    print('ABD')

Submission status: Accepted

Solution code:
s = int(input())

if s >= 1000:
    print('ABD')
else :
    print('ABC')

Submission status: Accepted

Solution code:
n = int(input())

if n < 1000:
	print("ABC")
else:
	print("ABD")

Submission status: Accepted

Solution code:
n = int(input())

if(n > 999):
    print("ABD")
else:
    print("ABC")

Submission status: Accepted

Solution code:
def main():
    a = input()
    a = int(a)

    if a < 1000:
        print("ABC")
    else:
        print("ABD")


if __name__ == "__main__":
        main()

Submission status: Accepted

Solution code:
N = int(input())

if N <= 999:
	print('ABC')
else:
	print('ABD')

Submission status: Accepted

Solution code:
N = int(input())

if N < 1000:
    print("ABC")
else:
    print("ABD")

Submission status: Accepted

Solution code:
n=int(input())
if n>=1000: print('ABD')
else: print('ABC')

Submission status: Accepted

Solution code:
#ABD
N = int(input())
if N <1000:
	print("ABC")
else:
	print("ABD")

Submission status: Accepted

Solution code:
def main():
    n = int(input())

    if 1 <= n <= 999:
        print("ABC")
    elif 1000 <= n <= 1998:
        print("ABD")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
N=int(input())

if N>999:
 print('ABD')
else:
 print('ABC')

Submission status: Accepted

Solution code:
from sys import stdin

N = int(stdin.readline().rstrip())

if N < 1000:
    name  = "ABC"
else:
    name = "ABD"
print(name)

Submission status: Accepted

Solution code:
# A

N = int(input())
if N >= 1000:
    print("ABD")
else:
    print("ABC")

Submission status: Accepted

Solution code:
N = input()
N = int(N)

if N < 1000:
    print("ABC")
elif N >= 1000:
    print("ABD")

Submission status: Accepted

Solution code:
n = int(input())


if n <= 999:
    print("ABC")
else:
    print("ABD")

Submission status: Accepted

Solution code:
n = int(input())

if n < 1000:
    print("ABC")
elif n >= 1000:
    print("ABD")

Submission status: Accepted

Solution code:
# coding: utf-8

n = int(input())

if n < 1000:
    print("ABC")
else:
    print("ABD")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
N = int(input())

if N <1000:
    print("ABC")
else:
    print("ABD")

Submission status: Accepted

Solution code:
N = int(input())

if(N <= 999):
	print("ABC")
else:
	print("ABD")

Submission status: Accepted

Solution code:
N=int(input())
if (N<=999):
	print('ABC')
else:
	print('ABD')

Submission status: Accepted

Solution code:
N = int(input())

if N <= 999:
    print('ABC')
elif N > 999:
    print('ABD')

Submission status: Accepted

Solution code:
n=int(input())
if(n<1000):
	print('ABC')
else:
	print('ABD')

Submission status: Accepted

Solution code:
n = int(input())
ans = ""
if n < 1000:
    ans = "ABC"
else:
    ans = "ABD"
print(ans)

Submission status: Accepted

Solution code:
N = int(input())
if N >= 1000:
	print("ABD")
else:
	print("ABC")

Submission status: Accepted

Solution code:
def main():
    N = int(input())
    if N<=999:
        return "ABC"
    else:
        return "ABD"

if __name__ == "__main__":
    print(main())

Submission status: Accepted

Solution code:
n = input()

if n < 1000:
	print "ABC"
else:
	print "ABD"

Submission status: Accepted

Solution code:
a=raw_input()
if int(a) >= 1000:
  print "ABD"
else:
  print "ABC"

Submission status: Accepted

Solution code:
n = int(input())
if n <= 999:
	print('ABC')
else:
	print('ABD')

Submission status: Accepted

Solution code:
n = int(input())
#a,b,c = list(map(int,input().split()))

if n > 999: print("ABD")
else: print("ABC")

Submission status: Accepted

Solution code:
n=int(input())
if n<1000:
	print("ABC")
else:
	print("ABD")

Submission status: Accepted

Solution code:
from collections import defaultdict as dd
from collections import Counter
from pprint import pprint as pp

YN = {True: 'Yes', False: 'No'}
ri = lambda: int(input())
ria = lambda: list(map(int, input().split()))
rian = lambda n: [ria() for _ in range(n)]
rs = lambda: input()
rsa = lambda: input().split()
rsn = lambda n: [rs() for _ in range(n)]

N = ri()
d = ['ABC','ABD']
print(d[N//1000])

Submission status: Accepted

Solution code:
n = int(input())
res = ""

if(n < 1000):
    res = "ABC"
else:
    res = "ABD"

print(res)

Submission status: Accepted

Solution code:

N=int(input())

if N>=1000:
    print("ABD")
else:
    print("ABC")

Submission status: Accepted

Solution code:
N = int(input())

if(N < 1000):
    print("ABC")
else:
    print("ABD")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

n = int(input())

if n < 1000:
    print("ABC")
else:
    print("ABD")

Submission status: Accepted

Solution code:
n = int(input())
print(['ABC', 'ABD'][n >= 1000])

Submission status: Accepted

Solution code:
N = int(input())

print('ABD' if N//1000 else 'ABC')

Submission status: Accepted

Solution code:
N = int(input())
ans = 'ABD' if N>999 else 'ABC'
print(ans)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import bisect
import heapq
import math
import random
import sys
from collections import Counter, defaultdict
from decimal import ROUND_CEILING, ROUND_HALF_UP, Decimal
from functools import lru_cache, reduce
from itertools import combinations, combinations_with_replacement, product


def read_int():
    return int(input())


def read_int_n():
    return list(map(int, input().split()))


def read_float():
    return float(input())


def read_float_n():
    return list(map(float, input().split()))


def read_str():
    return input()


def read_str_n():
    return list(map(str, input().split()))


def error_print(*args):
    print(*args, file=sys.stderr)


def mt(f):
    import time

    def wrap(*args, **kwargs):
        s = time.time()
        ret = f(*args, **kwargs)
        e = time.time()

        error_print(e - s, 'sec')
        return ret

    return wrap


@mt
def slv(N, AB):
    ans = 0
    return ans


def main():
    N = read_int()
    if N > 999:
        print('ABD')
    else:
        print('ABC')


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
from sys import stdin


def solve(tc):
    n = int(stdin.readline().strip())
    if n<1000:
        print('ABC')
    else:
        print('ABD')
    pass


LOCAL_TEST = not __debug__
if LOCAL_TEST:
    infile = __file__.split('.')[0] + "-test.in"
    stdin = open(infile, 'r')

tcs = (int(stdin.readline().strip()) if LOCAL_TEST else 1)
tc = 1
while tc <= tcs:
    solve(tc)
    tc += 1

Submission status: Accepted

Solution code:
n=int(input())

if n>=1000:
    print("ABD")
else:
    print("ABC")

Submission status: Accepted

Solution code:
a = int(input())
if a<= 999:
  print("ABC")
else:
  print("ABD")

Submission status: Accepted

Solution code:
N = int(input())

if N <= 999:
    print("ABC")
else:
    print('ABD')

Submission status: Accepted

Solution code:
N = int(input())

if N<1000:
    print("ABC")
else:
    print("ABD")

Submission status: Accepted

Solution code:
N = int(input())

if (N<=999) :
    print('ABC')
else :
    print('ABD')

Submission status: Accepted

Solution code:
N = int(input())
if N < 1000:
    print("ABC")

else:
    print("ABD")

Submission status: Accepted

Solution code:
N=int(input())
if 999>=N:
    print('ABC')
else:
    print('ABD')

Submission status: Accepted

Solution code:
# 整数の入力
A = int(input())

if A <= 999:
    print("ABC")

else:
    print("ABD")

Submission status: Accepted

Solution code:
import sys

N = int(sys.stdin.readline())                                                                                                                                                        
if N < 1000:
    print('ABC')
else:
    print('ABD')

Submission status: Accepted

Solution code:
n = int(input())
if 1<=n<=999:
  print("ABC")
else:
  print("ABD")

Submission status: Accepted

Solution code:
print("ABC" if 1000>int(input()) else "ABD")

Submission status: Accepted

Solution code:
a= int(input())
if 0<a<1000:
  print("ABC")
else:
  print("ABD")

Submission status: Accepted

Solution code:
n = int(input())

if n // 1000:
  print('ABD')
else:
  print('ABC')

Submission status: Accepted

Solution code:
x = int(input())

if x > 999:
    print('ABD')
    
else:
    print('ABC')

Submission status: Accepted

Solution code:
def main():
    num = int(input())
    if num<1000:
        ans = 'ABC'
    elif num < 1999:
        ans = 'ABD'
    else:
        print("error")
        
    print(ans)
    
    
if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
print('ABC' if int(input())<=999 else 'ABD')

Submission status: Accepted

Solution code:
N = int(input())

cName = "AB"

if N < 1000:
    cName += "C"
    # cName += str(N)
else:
    cName += "D"
    # cName += str(N-999)

print(cName)

Submission status: Accepted

Solution code:
import sys
import math
import collections
import itertools
import array
import inspect

# Set max recursion limit
sys.setrecursionlimit(10000)

# Debug output
def chkprint(*args):
    names = {id(v):k for k,v in inspect.currentframe().f_back.f_locals.items()}
    print(', '.join(names.get(id(arg),'???')+' = '+repr(arg) for arg in args))

# Binary converter
def to_bin(x):
    return bin(x)[2:]

# --------------------------------------------

dp = None

def main():
    n = int(input())

    if 1 <= n <= 999:
        print("ABC")
    else:
        print("ABD")

main()

Submission status: Accepted

Solution code:
a = int(input())

if a > 999:
    print("ABD")
else:
    print("ABC")

Submission status: Accepted

Solution code:
N = int(input())

if N > 999:
 print("ABD")
else:
 print("ABC")

Submission status: Accepted

Solution code:
n = int(input())

if(n <= 999):
    print("ABC")
else:
    print("ABD")

Submission status: Accepted

Solution code:
n = int(input())
if 0 < n < 1000:
    print('ABC')
else:
    print('ABD')

Submission status: Accepted

Solution code:
print "ABC" if input()<1000 else "ABD"

Submission status: Accepted

Solution code:
n = int(input())

if n <= 999:
    print("ABC")
elif n > 999:
    print("ABD")

Submission status: Accepted

Solution code:
print('ABC' if int(input())<1000 else 'ABD')

Submission status: Accepted

Solution code:
N = int(raw_input())
if N < 1000:
    print 'ABC'
else:
    print 'ABD'

Submission status: Accepted

Solution code:
#! /usr/bin/env python3

n = int(input())

if n > 999:
    print('ABD')
else:
    print('ABC')

Submission status: Accepted

Solution code:
if int(input())<1000:
    print('ABC')
else:
    print('ABD')

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

N=int(input())

if N<1000:
    print("ABC")
else:
    print("ABD")

Submission status: Accepted

Solution code:
n=int(input())
if 1<=n<=999:
    print('ABC')
else:
    print('ABD')

Submission status: Accepted

Solution code:
def main():
    n = int(input())

    if n <= 999:
        print("ABC")
    else:
        print("ABD")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# AtCoder Beginner Contest
# Problem A


if __name__ == '__main__':
    n = int(input())

    if n < 1000:
        print('ABC')
    else:
        print('ABD')

Submission status: Accepted

Solution code:
N = int(input())
ans = 'ABC' if N <= 999 else 'ABD'
print(ans)

Submission status: Accepted

Solution code:
i = int(input())
if i < 1000:
    print('ABC')
else: print('ABD')

Submission status: Accepted

Solution code:
n = int(input())
if(n < 1000):
    print("ABC")
else:
    print("ABD")

Submission status: Accepted

Solution code:
def main():
    N = int(input())

    if N >= 1000:
        print("ABD")
    else:
        print("ABC")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
#!python
# -*- coding: utf-8 -*-


def main():
    N = int(input())
    if N <= 999:
        print("ABC")
    else:
        print("ABD")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
n = int(input())
if n >= 1000:
    print("ABD")
else:
    print("ABC")

Submission status: Accepted

Solution code:
N=int(input())
if N<1000:
	print('ABC')
else:
	print('ABD')

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
N=int(input())

if N < 1000:
    print('ABC')
else:
    print('ABD')

Submission status: Accepted

Solution code:
n = int(input())
if n <=999:
    print("ABC")
else :
    print("ABD")

Submission status: Accepted

Solution code:
N = int(input())
print("AB" + ["C", "D"][N >= 1000])

Submission status: Accepted

Solution code:
def abc099_a():
    n = int(input())

    return ["ABC", "ABD"][n >= 1000]


print(abc099_a())

Submission status: Accepted

Solution code:
num=int(input())
EIGO="ABC"
if num >= 1000:
  EIGO="ABD"
print(EIGO)

Submission status: Accepted

Solution code:
N=int(input())

if N<=999:
    print("ABC")

else:
    print("ABD")

Submission status: Accepted

Solution code:
print('ABD'if int(input())>999 else 'ABC')

Submission status: Accepted

Solution code:
N = int(raw_input())
if N < 1000:
    print 'ABC'
else:
    print 'ABD'

Submission status: Accepted

Solution code:
n = int(input())
if n>=1000: print("ABD")
else : print("ABC")

Submission status: Accepted

Solution code:
N = int(input())

if N>999:
    print("ABD")
else:
    print("ABC")

Submission status: Accepted

Solution code:
N= int(input())
if N>999:
  print("ABD")
else:
  print("ABC")

Submission status: Accepted

Solution code:
A = int(input())

if A >= 1000:
    print("ABD")
else:
    print("ABC")

Submission status: Accepted

Solution code:
a = int(input())

if a <= 999:
  print("ABC")
else:
  print("ABD")

Submission status: Accepted

Solution code:
# input
N = int(input())

if N <= 999:
    print('ABC')
else:
    print('ABD')

Submission status: Accepted

Solution code:
a = int(input())
if a > 999:
    print("ABD")
else:
    print("ABC")

Submission status: Accepted

Solution code:
N = int(input())

if(N<=999):
    print("ABC")
else:
    print("ABD")

Submission status: Accepted

Solution code:
N = int(input())
print(["ABC", "ABD"][N>=1000])

Submission status: Accepted

Solution code:
a = int(input())
if a<=999:
    print("ABC")
else:
    print("ABD")

Submission status: Accepted

Solution code:
s = int(input())
if s >= 1000:
  print('ABD')
else:
  print('ABC')

Submission status: Accepted

Solution code:
import sys,collections,math;sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def Ss(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

n = I()
if n > 999:
    print("ABD")
else:
    print("ABC")

Submission status: Accepted

Solution code:
n = int(input())
if 1000 <= n:
  print('ABD')
else:
  print('ABC')

Submission status: Accepted

Solution code:
N = int(input())
if N > 999:
	print("ABD")
else:
	print("ABC")

Submission status: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**10
mod = 998244353

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
def pf(s): return print(s, flush=True)


def main():
    n = I()
    if n < 1000:
        return 'ABC'

    return 'ABD'


print(main())

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

n = int(input())
if n >= 1000:
    print('ABD')
else:
    print('ABC')

Submission status: Accepted

Solution code:
n = int(input())
if n<1000:
	print('ABC')
else:
	print("ABD")

Submission status: Accepted

Solution code:
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

n = ni()

print("ABC" if n <= 999 else "ABD")

Submission status: Accepted

Solution code:
N = int(input())

if N>=1000:
    print("ABD")
else:
    print("ABC")

Submission status: Accepted

Solution code:
a=int(input())
if(a<=999):print("ABC")
else:print("ABD")

Submission status: Runtime Error

Solution code:
moji = map(int,input().split())
print(("ABC","ABD")[moji >=1000])

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())
dif = b-a 
temp = 0
for i in range(dif):
    temp += i 
ans = temp - a
print(ans)

Submission status: Runtime Error

Solution code:

n=input()
if n < 1000:
    prnt('ABC')
else:
    print('ABD')

Submission status: Runtime Error

Solution code:
A,B = map(str,input().split())
print(B+A)

Submission status: Runtime Error

Solution code:
name=input()
if name<=999:
    print('ABC')
elif name>=1000:
    print('ABD')
else:
    print()

Submission status: Runtime Error

Solution code:
a=int(input())
if a<10:
  print("ABC00"+str(a))
elif 10<=a<100:
  print("ABC0"+str(a))
elif 100<=a<1000:
  print("ABC"+str(a))
elif: 1000<=a<1010:
  print("ABD00"+str(a))
elif: 1010<=a<1100:
  print("ABD0"+str(a))
else:
  print("ABD"+str(a))

Submission status: Runtime Error

Solution code:
a=int(input())
if a<10:
  print("ABC00"+a)
elif 10<=a<100:
  print("ABC0"+a)
elif 100<=a<1000:
  print("ABC"+a)
elif: 1000<=a<1010:
  print("ABD00"+a)
elif: 1010<=a<1100:
  print("ABD0"+a)
else:
  print("ABD"+a)

Submission status: Runtime Error

Solution code:
if 1<= N < 1000:
    print('ABC')


elif 1000 <= N <= 1998:
    print('ABD')

Submission status: Runtime Error

Solution code:
n = int(input())

if n < 1000:
    input('ABC')
else:
    input('ABD')

Submission status: Runtime Error

Solution code:
n = int(input())

if n < 1000:
    input("ABC")
else:
    input("ABD")

Submission status: Runtime Error

Solution code:
n = int(input())

if 1 <= n <= 999:
   input("ABC")
else:
    input("ABD")

Submission status: Runtime Error

Solution code:
N = input()

if N >= 1000:
    print( 'ABD' )

else :
    print( 'ABC' )

Submission status: Runtime Error

Solution code:
n = int(input())

s = input()

if n < 1000:
    print('ABC')

elif 1000 <= n <= 1998:
    print('ABD')

Submission status: Runtime Error

Solution code:
N = int(input())

s = input()

if N < 1000:
    print('ABC')

elif 1000 <= N <= 1998:
    print('ABD')

Submission status: Runtime Error

Solution code:
N = int(input())

s = input()

if N < 1000:
    print('ABC')

elif N > 999:
    print('ABD')

Submission status: Runtime Error

Solution code:
N=int(input())
1<=N<=1988

if N<=999:
    print('ABC')
else N>=1000:
    print('ABD')

Submission status: Runtime Error

Solution code:
if contest_num <= 999:
    print('ABC' + str(contest_num).zfill(3))
elif contest_num >= 1000:
    over_thousand_num_fix = contest_num - 999
    print('ABD' + str(over_thousand_num_fix).zfill(3))

Submission status: Runtime Error

Solution code:
a, b = map(int, input().split())

x = b - a
s = 0
for i in range(1,x,1):
  s += i

ans = s - a
print(ans)

Submission status: Runtime Error

Solution code:
N = int(input().split())

if N < 1000:
    print('ABC')
else:
    print('ABD')

Submission status: Runtime Error

Solution code:
package main

import "fmt"

func main() {
	var a int
	fmt.Scan(&a)
	if a > 1000 {
		fmt.Println("ABD")
	} else {
		fmt.Println("ABC")
	}
}

Submission status: Runtime Error

Solution code:
n = int(input())
if n > 999:
    print("ABD)
else:
    print("ABC")

Submission status: Runtime Error

Solution code:
n = int(input())
ans = ''
if n > 999:
  ans = "ABD" + str(n-999).zfill(3)
else:
  ans = "ABC" + str(n).zfill(3)
print(ans

Submission status: Runtime Error

Solution code:
if(int(input()<1000):print("ABC")
else:print("ABD")

Submission status: Runtime Error

Solution code:
N=int(input())

if =1<N<=999:
	print("ABC")
elif 999<N<=1998:
 	print("ABD")

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-

n = int(input())

if (n / 1000) == 0:
    print('ABC' + n % 1000)
else:
    print('ABD' + (n % 1000) + 1)

Submission status: Runtime Error

Solution code:
n=int(input())
if n - 999 > 0:
  print('ABD')
elif:
  print('ABC')

Submission status: Runtime Error

Solution code:
A, B = map(int, input().split())
 
diff = B - A
height_A = diff * (diff - 1) // 2
 
ans = height_A - A
 
print(ans)

Submission status: Runtime Error

Solution code:
if int(input()) >= 1000:
  print(“ABD”)
else:
  print(“ABC”)

Submission status: Runtime Error

Solution code:
n = input()
if n >= 1000:
    print("ABD")
else:
    print("ABC")

Submission status: Runtime Error

Solution code:
from sys import stdin
input = stdin.readline

def VI(N, init=0):
  return [init for _ in range(N)]
def VVI(N, M, init=0):
  return [[init for _ in range(M)] for _ in range(N)]

def VD(N, init=0.0):
  return [init for _ in range(N)]
def VVD(N, M, init=0.0):
  return [[init for _ in range(M)] for _ in range(N)]

def Decimal(x):
  print("{0:.10f}".format(x))

class Pair:
  def __init__(self, x=0, y=0):
    self.first = x
    self.second = y

  def __repr__(self):
    return '{0} {1}'.format(self.first, self.second)

  def __lt__(self, pi):
    return self.first < pi.second

def POW(x, n):
  ret = 1
  while n:
    if n&1:
      ret *= x
    x *= x
    n >>= 1
  return ret

N = int(input().rsplit())
if N < 1000:
  print("ABC")
else:
  print("ABD")

Submission status: Runtime Error

Solution code:
n = int(input())
ans = 'AB'
if n <= 999:
  ans += 'C'
else:
  ans += 'D'
  n -= 999
print(ans+'{03}'.format(n))

Submission status: Runtime Error

Solution code:
print("ABD" if int(input())>999 else "ABC)

Submission status: Runtime Error

Solution code:
N = int(input())
if N < 1000:
  print('ABC{:03}'.format(N))
else:
  print('ABD{:03}'.format(str(N)[1:]))

Submission status: Runtime Error

Solution code:
n=input()
if n>=1000:
  print('ABD')
else:
  print('ABC')

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
n=b-a
summy=((n+1)*n)/2
print(int(summy-b))

Submission status: Runtime Error

Solution code:
N = input()

if len(N)<=3:
  print("ABC")
else:
  print("ABD)

Submission status: Runtime Error

Solution code:
n = int(input())
if n >= 1000:
  print('ABD'+(n-999))
else:
  print('ABC'+n)

Submission status: Runtime Error

Solution code:
n = int(input())
if n >= 1000:
  print('ABD'+(1000-n))
else:
  print('ABC'+n)

Submission status: Runtime Error

Solution code:
n=int(input())
if(n>=1000):
  print("ABD")
 else:
  print("ABC")

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
k=b-a
print(((1+k)*k)//2-b)

Submission status: Runtime Error

Solution code:
N = input()
print("ABC" if N<=999 else "ABD")

Submission status: Runtime Error

Solution code:
N = map(int, input().split())
print("ABC" if N<=999 else "ABD")

Submission status: Runtime Error

Solution code:
N = int(input())

if N <= 999:
  print("ABC")
else:
  pritn("ABD")

Submission status: Runtime Error

Solution code:
print(["ABD","ABC][len(input())==3])

Submission status: Runtime Error

Solution code:
int n = input()
print("ABC" if n < 1000 else "ABD")

Submission status: Runtime Error

Solution code:
print("ABC" if input()<1000 else "ABD")

Submission status: Runtime Error

Solution code:
n=int(input())
k=n-999
if n<=999:print('ABC'+str(n).fill(3))
else:print('ABD'+ str(k).zfill(3))

Submission status: Runtime Error

Solution code:
n=int(input())
k=n-999
if n<=999:print('ABC'+str(n.fill(3)))
else:print('ABD'+ str(k.zfill(3)))

Submission status: Runtime Error

Solution code:
n = input()
if n >= 1000:
    ans = "ABD"
else:
    ans = "ABC"
print(ans)

Submission status: Runtime Error

Solution code:
N = input()
if N >= 1000:
    print("ABD")
else:
    print("ABC")

Submission status: Runtime Error

Solution code:
N=int(input())
if N < 1000:
    print('ABC'+N)
else:
    print('ABD'+format(N-999,'03d'))

Submission status: Runtime Error

Solution code:
N=int(input())
if N<1000:
    print('ABC',N)
elif:
    print('ABD',N-999)

Submission status: Runtime Error

Solution code:
N = int(input())

if N < 1000:
  print("ABC" + N)
else:
  print("ABD" + (N - 999))

Submission status: Runtime Error

Solution code:
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
		if (n<=999){
        System.out.println("ABC");
        }else{
        System.out.println("ABD");
        }
    }
}

Submission status: Runtime Error

Solution code:
print("AABBDC"[int(input())<1000::2]

Submission status: Runtime Error

Solution code:
print("AABBDC")[int(input())<1000::2]

Submission status: Runtime Error

Solution code:
a, b = map(int, input().split())

print(((b-a)+1)*(b-a)//2-b)

Submission status: Runtime Error

Solution code:
n=int(input())
if (n < 1000)
	print("ABC")
else
	print("ABD")

Submission status: Runtime Error

Solution code:
n=int(intput())
if n < 1000:
	print('ABC')
else:
	print('ABD')

Submission status: Runtime Error

Solution code:
n=int(intput())
if n < 1000:
	print("ABC")
else:
	print("ABD")

Submission status: Runtime Error

Solution code:
n=int(intput())
if (n < 1000)
	print("ABC")
else
	print("ABD")

Submission status: Runtime Error

Solution code:
n=intput()
if (n < 1000)
	print("ABC")
else
	print("ABD")

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.buffer.readline

def gcd(a: int, b: int):
    """ https://cocodrips.hateblo.jp/entry/2014/03/05/143623
    """
    while b:
        a, b = b, a%b
    return a

def lcm(a: int, b: int):
    return a * b // gcd(a, b)


def main():
    N = int(input())
	#N, M = map(int, input().split())
    #print(lcm(N, M))
	print("ABC" if N<1000 else "ABD")

if __name__ == "__main__":
    main()