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:
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())
#n,k = map(int,input().split())
#x = list(map(int,input().split()))

n1 = input()
n = int(n1)+1

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

Submission status: Accepted

Solution code:
from collections import Counter,defaultdict,deque
from heapq import heappop,heappush,heapify
import sys,bisect,math,itertools,fractions,pprint
sys.setrecursionlimit(10**8)
mod = 10**9+7
mod2 = 998244353
INF = float('inf')
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpln(n): return list(int(sys.stdin.readline()) for i in range(n))

n = inp()
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:
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    n=INT()
    if n<=999:
        print('ABC')
    else:
        print('ABD')
if __name__ == '__main__':
    do()

Submission status: Accepted

Solution code:
if int(input()) in range(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:
if int(input()) > 999:
  print("ABD")
else:
  print("ABC")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=input()
if len(n)==4:
  print("ABD")
else:
  print("ABC")

Submission status: Accepted

Solution code:
n=int(input())
a=n//1000
if a==0:
    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:
#!/usr/bin/env python3
import sys


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

# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    solve(N)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# ABC099a
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

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

Submission status: Accepted

Solution code:
n = int(input())
print("ABC") if n <= 999 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:
N = int(input())

if N <= 999:
    ans = 'ABC'
else:
    ans = 'ABD'

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def examA():
    N = I()
    ans = "ABC"
    if N>=1000:
        ans = "ABD"
    print(ans)



import sys,copy,bisect,itertools,heapq,math
from heapq import heappop,heappush,heapify
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LSI(): return list(map(str,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def SI(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

examA()

Submission status: Accepted

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

#入力
#S = str(input())
#A, B = map(int, input().split())
N = int(input())

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

Submission status: Accepted

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

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:
#!/usr/bin/env python3
import sys, math, itertools, heapq, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
sys.setrecursionlimit(10**8)
inf = float('inf')
ans = count = 0

n=int(input())
if 1<=n<=999:
    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("ABC")
elif n > 999:
  print("ABD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
year = int(input())
if year <= 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:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
N = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
import sys
read = sys.stdin.buffer.read
input=lambda :sys.stdin.readline().rstrip()
inputs= sys.stdin.buffer.readlines
INF=float("inf")
MOD=10**9+7
#input = sys.stdin.buffer.readline
#sys.setrecursionlimit(2147483647)
#rstrip().decode('utf-8')
#import math
#import numpy as np
#import operator
#import bisect
#from heapq import heapify,heappop,heappush
#from math import gcd
#from fractions import gcd
#from collections import deque
#from collections import defaultdict
#from collections import Counter
#from itertools import accumulate
#from itertools import groupby
#from itertools import permutations
#from itertools import combinations
#from scipy.sparse import csr_matrix
#from scipy.sparse.csgraph import floyd_warshall
#from scipy.sparse.csgraph import csgraph_from_dense
#from scipy.sparse.csgraph import dijkstra
#map(int,input().split())


def main():
	n=int(input())
	ans="ABC"
	if n>999:
		ans="ABD"
	print(ans)
	




if __name__ == '__main__':
	main()

Submission status: Accepted

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

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
n = int(input().split()[0])
ans = "ABD" if n > 999 else "ABC"
print(ans)

Submission status: Accepted

Solution code:
from sys import stdin
import fractions

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

if n <1000:
    print("ABC")

else:
    print("ABD")

Submission status: Accepted

Solution code:
print('ABD' if len(input())>3 else '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("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:
    ans = "ABC"
else:
    ans = "ABD"

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#ABD
N = int(input())
if N <= 999:
    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 ("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:
#                         author:  kagemeka 
#                         created: 2019-11-08 02:12:52(JST)
## internal modules
import sys
# import collections
# import math
# import string
# import bisect
# import re
# import itertools
# import statistics
# import functools
# import operator
## external modules
# import scipy.special   # if use comb function on AtCoder, 
# import scipy.misc      # select scipy.misc.comb (old version) 

def main():
    n = int(sys.stdin.readline().rstrip())
    if n < 1000:
        ans = 'ABC'
    else:
        ans = 'ABD'
    
    print(ans)



if __name__ == "__main__":
    # execute only if run as a script
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#99a
N = int(input())
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:
#  ABC 099: A – ABD
n = int(input())
print('ABC' if n < 1000 else 'ABD')

Submission status: Accepted

Solution code:
if int(input()) <= 999:
  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:
	ans = 'ABC'
else:
	ans = 'ABD'
	
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(format(0xABC000 + int(input(), 16), 'x').upper()[:3])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
print("ABC" if 1<=n<1000 else "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())
print('ABC' if n<1000 else 'ABD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
n=int(input())
print("AB"+"C"*(n<1000)+"D"*(n>=1000))

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('ABD')
else:
  print('ABC')

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('ABC')
else:
    print('ABD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=int(input())

if N < 1000:
  print('ABC')
elif N >=1000 and N <= 1998:
  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())

print('ABC' if n < 1000 else '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:
def resolve():
  n = int(input())
  if n < 1000:
    print('ABC')
  else:
    print('ABD')
  return

if __name__ == "__main__":
    resolve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline


def main():
    n = int(input())
    if n < 1000:
        print("ABC")
    else:
        print("ABD")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
def slove():
    import sys
    input = sys.stdin.readline
    n = int(input().rstrip('\n'))
    print("ABD" if n > 999 else "ABC")


if __name__ == '__main__':
    slove()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print('AB'+'CD'[int(input())//1000])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

aa099()

Submission status: Accepted

Solution code:
x=int(input())
a=x//1000
if a==0:
  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:
a=int(input())
print("ABC" if a<1000 else "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<1000:
  print("ABC")
else:
  print("ABD")

Submission status: Accepted

Solution code:
N = int(input())

if 0<N<1000:
  print('ABC')

if 999<N<1999:
  print('ABD')

Submission status: Accepted

Solution code:
if int(input()) >= 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('ABC')
    
else:
    print('ABD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
print('AB'+'CD'[n//1000])

Submission status: Accepted

Solution code:
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    
n=int(input())

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

Submission status: Accepted

Solution code:
print('ABC' if int(input().strip()) < 1000 else '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('ABC' if 1 <= N and N <= 999 else 'ABD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
from collections import defaultdict
sys.setrecursionlimit(200000)
input = sys.stdin.readline

N, = map(int, input().split())

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

Submission status: Accepted

Solution code:
s = input()
print("ABC" if len(s)<=3 else "ABD")

Submission status: Accepted

Solution code:
print("AB"+"CD"[len(input())>3])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input());print(["ABC","ABD"][n>999])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

print("AB{0}".format("C" if n//1000 == 0 else "D"))

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("ABD" if n >= 1000 else "ABC")

Submission status: Accepted

Solution code:
print(['ABD','ABC'][len(input())<4])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

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 1 <= n <= 999:
  print("ABC")
else:
  print("ABD")

Submission status: Accepted

Solution code:
N = int(input())

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

if N >= 1000 and N <= 1998:
    print('ABD')

Submission status: Accepted

Solution code:
def main(n: int) -> str:
    if n > 999:
        return 'ABD'
    else:
        return 'ABC'


if __name__ == "__main__":
    n = int(input())
    print(main(n))

Submission status: Accepted

Solution code:
D = int(input())

if D <= 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:
print("AB"+("C","D")[int(input())>999])

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 // 1000 >= 1:
    print('ABD')
else:
    print('ABC')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
if N <= 999:
    print('ABC')
elif N >= 1000 and N <= 1998:
    print('ABD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
from collections import deque
from collections import  Counter
import statistics
import math
stdin = sys.stdin

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

n = ni()
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:
n=int(input())

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

Submission status: Accepted

Solution code:
print("ABC") if int(input())<=999 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 -*-

n = int(input())

pref = ""
if n <= 999:
    pref = "ABC"
else:
    pref = "ABD"

print(pref)

Submission status: Accepted

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

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("ABD")
else:print("ABC")

Submission status: Accepted

Solution code:
import sys
import math
from fractions import gcd
# import queue
# from collections import Counter
# from itertools import accumulate
# from functools import reduce

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

def combination_count(n, r):
    return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))

def permutations_count(n, r):
    return math.factorial(n) // math.factorial(n - r)

big_prime = 1000000007

"""
# 標準入力取得
## 文字列
 =  sys.stdin.readline().rstrip()
 =  list(sys.stdin.readline().rstrip())

## 数値
 =  int(sys.stdin.readline())
 =  map(int, sys.stdin.readline().split())
 =  list(map(int, sys.stdin.readline().split()))
 =  [list(map(int,list(sys.stdin.readline().split()))) for i in range(N)]
"""

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

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

Submission status: Accepted

Solution code:


def main():

    print('ABC') if int(input()) <= 999 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())
print("ABC" if N<1000 else "ABD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8
n = int(input())
# n=999まではABC
if n <= 999:
    print('ABC')
else:
# n=1000以降はABD
    print('ABD')

Submission status: Accepted

Solution code:
n =int(input())
print("ABC" if n<1000 else "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())
print("ABC" if N < 1000 else "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 1 <= N <= 999:
    print("ABC")
elif 1000 <= N <= 1998:
    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:
        return "ABC"
    else:
        return "ABD"

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N=int(input())
a='ABD'
b='ABC'

if N<=999:
  print(b)
else:
  print(a)

Submission status: Accepted

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

if __name__ == "__main__":
    resolve()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
print('AABBCD'[int(input())>=1000::2])

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:
import sys
def input(): return sys.stdin.readline().strip()
n=int(input())
print('AB' + ('C' if n < 1000 else 'D'))

Submission status: Accepted

Solution code:
a = int(input())

print('ABC' if a < 1000 else 'ABD')

Submission status: Accepted

Solution code:
N=int(input())

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

Submission status: Accepted

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


if __name__ == "__main__":
    test()

Submission status: Accepted

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

    if 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())
print("ABC" if n <= 999 else "ABD")

Submission status: Accepted

Solution code:
print('AABBCD'[int(input())>999::2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

ans = "ABD"
if (N >= 1 and N < 1000):
  ans = "ABC"
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
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:
print('AB'+['D','C'][len(input())<4])

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

if n<=999:
  print('ABC')

else:
  print('ABD')

Submission status: Accepted

Solution code:
x = int(input())

if x < 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 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:
#10:21
n = int(input())
if n < 1000:
  print('ABC')
else:
  print('ABD')

Submission status: Accepted

Solution code:
#99

N = int(input())

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

Submission status: Accepted

Solution code:
from sys import stdin
N = int(stdin.readline().rstrip())
if N <= 999:
    print("ABC")
    
else:
    print("ABD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if int(input()) <= 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")
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:
x = int(input())
if x < 1000:
  print('ABC')
else:
  print('ABD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:

n = int(input())

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

Submission status: Accepted

Solution code:
#https://atcoder.jp/contests/abc099/tasks/abc099_a

a = int(input())

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

Submission status: Accepted

Solution code:
N = int(input())
print(("ABC" if N < 1000 else "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('ABD')
else:
  print('ABC')

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:
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:
if 1<= int(input()) <= 999:
    print("ABC")
else:
    print("ABD")

Submission status: Accepted

Solution code:
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
 
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

N = INT()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
N = int(input())
if N <= 999:
    print("ABC")
else:
    print("ABD")