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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = int(input())

if num > 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 N <=999:
    print('ABC')
else:
    print('ABD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

def main():
    #入力
    N = int(input())

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a= int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
if N > 999:
    print('ABD')
elif N <= 999:
    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 in range(0,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:
# coding: utf-8
if int(input()) < 1000:
    print('ABC')
else:
    print('ABD')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

if 1 <= N and 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 = input()

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

Submission status: Accepted

Solution code:
#coding:utf-8

N = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#A: ABD
num = int(input())
if num <= 999:
    print("ABC")
elif num >= 1000 and num <= 1998:
    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:
if __name__ == '__main__':
    N = int(input())
    if N >= 1000:
        print('ABD')
    else:
        print('ABC')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = map(int, raw_input().split())

if N[0] < 1000:
    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:
# -*- coding: utf-8 -*-
def margin0(n):
    if n < 10:
        return "00{}".format(n)
    elif n < 100:
        return "0{}".format(n)
    elif n < 1000:
        return "".format(n%1000)
    else:
        return "{}".format(n%1000 - 1)
n = int(input())
# print(n)
name = ""
if n < 1000:
    name = "ABC{}".format(margin0(n))
else:
    name = "ABD{}".format(margin0(n))
print(name[:3])

Submission status: Accepted

Solution code:
n = int(input())

print('AB' + chr(ord('C') + int(n / 1000)))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
if n<=999:
	s="ABC"
	print(s)
else:
	n=n-999
	#x=str(n)
	s="ABD"
	print(s)

Submission status: Accepted

Solution code:
n = int(input())
def con_n(n):
    if n < 1000:
        return 'ABC'
    elif n >= 1000:
        return 'ABD'
    
print(con_n(n))

Submission status: Accepted

Solution code:
N = int(input())
print("{}".format("AB" + chr(ord( "C") + (N-1) // 999)))

Submission status: Accepted

Solution code:
N = int(input())
#使い切ったブロックの数
block = (N-1) // 999

a = chr(ord( "C") + block)

b = "AB" + a

print("{}".format(b))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

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

Submission status: Accepted

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

input_line = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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

Submission status: Accepted

Solution code:
in_num=int(input())
if 1<=in_num<=999:
    print("ABC")
elif 1000<=in_num<=1999:
    print("ABD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

ans = "ABC"
if N > 999:
    ans = "ABD"
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
k=int(input())
if k<1000:
    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:
input_number = int(input())

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

Submission status: Accepted

Solution code:
def main():
    buf = int(input(""));
    if buf < 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:
if int(input())<1000:
  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:
n=int(input())
print("ABC" if n <= 999 else "ABD")

Submission status: Accepted

Solution code:
import sys
num = sys.stdin.readline()

if int(num) < 1000:
    print("ABC")
elif int(num) < 2000:
    print("ABD")
else:
    print(None)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#! /usr/bin/env python
# -*- coding: utf-8 -*-
n = int(input())
if n > 999:
    s = 'ABD'
else:
    s = 'ABC'
print(s)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
if __name__ == "__main__":
    n = int(input())
    if n < 1000:
        print("ABC")
    else:
        print("ABD")

Submission status: Accepted

Solution code:
x=input()
y=int(x)
if y>999 and y<1999:
    print("ABD")
else:
    print("ABC")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/bin/python

import math
import os
import random
import re
import sys

def solution(N):
    if N>999:
        return "ABD"
    return "ABC"
    

if __name__ == '__main__':
    N = int(raw_input())
    result = solution(N)

    print result

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
line = input();

if(line < 1000):
    print('ABC');
else:
    print('ABD');

Submission status: Accepted

Solution code:
# ANSHUL GAUTAM
# IIIT-D
 
N = int(input())
if(N>=1 and N<1000):
	print("ABC")
else:
	print("ABD")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def getinputdata():

    array_result = []    
    data = input()
    array_result.append(data.split(" "))

    flg = True

    try:
        while flg:

            data = input()

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = True

            else:

                flg = False
    finally:

        return array_result

arr_data = getinputdata()

n = int(arr_data[0][0])

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

if contest_count >= 0 and contest_count <= 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:
#abc099

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

Submission status: Accepted

Solution code:
def solve(n):
    return "ABD" if n >= 1000 else "ABC"

assert solve(999) == "ABC"
assert solve(1000) == "ABD"
assert solve(1481) == "ABD"
print solve(input())

Submission status: Accepted

Solution code:
N=int(input().strip())
print('AB'+('C D'.split()[N>=1000]))

Submission status: Accepted

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

Submission status: Accepted

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

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

if N > 999:
	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('ABC') if n<1000 else print('ABD')

Submission status: Accepted

Solution code:
print('AB' + ('D' if len(input())==4 else 'C'))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(raw_input())
output = "ABC"
if n > 999 : output =  "ABD"
print output

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(["ABC","ABD"][int(input()) // 1000])

Submission status: Accepted

Solution code:
if __name__=="__main__":
    n=input()
    if n<=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:

# coding: utf-8

# In[95]:


N = int(input())


# In[96]:


third_letter = "C"


# In[97]:


a = int(N / 1000)
b = N % 999


# In[99]:


letter_ascii = ord(third_letter) + a


# In[100]:


letter = chr(letter_ascii)


# In[101]:


output = "AB" + letter


# In[102]:


print(output)

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

Solution code:
print("ABD"if len(input())>3 else"ABC")

Submission status: Accepted

Solution code:
print 'AB'+'CD'[input()>999]

Submission status: Accepted

Solution code:
print('AB'+'DC'[not input()[3:]])

Submission status: Accepted

Solution code:
print("AB"+"DC"[len(input()) < 4])

Submission status: Accepted

Solution code:
print('AB'+'DC'[not input()[3:]])

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print('ABC'if len(input())<4 else'ABD')

Submission status: Accepted

Solution code:
print(('ABD','ABC')[not input()[3:]])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
N = int(input())
print('AB'+chr(67+(N>999)))

Submission status: Accepted

Solution code:
N = int(input())

if 1 <= N and N <= 999:
    print('ABC')
elif 1000 <= N and N <= 1998:
    print('ABD')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding : utf-8

if __name__ == '__main__':

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

Submission status: Accepted

Solution code:
n = input()

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

Submission status: Accepted

Solution code:
from sys import stdin
n = int(stdin.readline())
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 1 <= 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())

contest = "ABC"
if n >= 1000:
    contest = "ABD"

print(contest)

Submission status: Accepted

Solution code:
if int(input()) >= 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:
import numpy as np
N =int(input())
K=''
if N > 999:
    K='ABD'
else:
    K='ABC'
print(K)

Submission status: Accepted

Solution code:
s = print('AB' + ('D' if int(input()) > 999 else 'C'))

Submission status: Accepted

Solution code:
i1 = int(input())

if i1 >= 1 and i1 <= 999:
    print ("ABC")
else:
    print ("ABD")

Submission status: Accepted

Solution code:
#-^- cofing:utf-8 -^-

inVal = int(input())

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
a = int(raw_input())
ret= 'ABC' if a <= 999 else 'ABD'
print ret

Submission status: Accepted

Solution code:
#A
N=int(input())
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:
num = int(input())
 
if num < 1000:
  print("ABC")
elif (999 < num < 1999):
  print("ABD")
else:
  print("error")

Submission status: Accepted

Solution code:
line = input()

num = int(line)

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

Submission status: Accepted

Solution code:
n = int(raw_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:
print ['ABC','ABD'][input()>999]

Submission status: Accepted

Solution code:
N = int(input())
print('AB{}'.format(['C', 'D'][N//1000]))

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

input = raw_input()
num_input = int(input)
if num_input < 1000:
    input = '%03d' % num_input
    output = "ABC"
else:
    input ='%03d' % (num_input - 999)
    output = "ABD"

print output

Submission status: Accepted

Solution code:

N = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
suuzi = int(raw_input())
 
if suuzi <= 999:
	print("ABC")
elif suuzi >= 1000:
	print("ABD")

Submission status: Accepted

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

Submission status: Accepted

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

if n/1000 == 1:
	print 'ABD'
else :
	print 'ABC'

Submission status: Accepted

Solution code:
N = int(raw_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:
a = int(input())
if a>=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:
# -*- coding: utf-8 -*-

import os
import sys
import math
import numpy as np


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

Submission status: Accepted

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

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())

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

Submission status: Accepted

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

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:
# -*- coding: utf-8 -*-                                                         

n = int(raw_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 (0<=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:
l = list(map(int, input().split()))
N=l[0]

if N >999:
    ans="ABD"
else:
    ans="ABC"

print(ans)

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

Submission status: Accepted

Solution code:
print('AB'+('C' if int(input()) < 1000 else 'D'))

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

Submission status: Accepted

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

main()

Submission status: Accepted

Solution code:
# https://beta.atcoder.jp/contests/abc099/tasks/abc099_a
# A - ABD

# A_ABD.py

N = int(input())

C_or_D = (N-1) // 999


name = ""

if C_or_D == 0:
    name += "ABC"
    #n = N
elif C_or_D == 1:
    name += "ABD"
    #n = '{0:03d}'.format(N - 999)

#ame += str(n)

print(name)

Submission status: Accepted

Solution code:
from sys import stdin, stdout


n = int(stdin.readline())

if n > 999:
    stdout.write('ABD')
else:
    stdout.write('ABC')

Submission status: Accepted

Solution code:
N=int(input())
string='ABC'
if N<1000:
    print(string)
elif 1000<=N<=1998:
    string=string[:2]+'D'
    print(string)

Submission status: Accepted

Solution code:
N = int(input())

print("AB{}".format(["C", "D"][N // 1000]))

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

Submission status: Accepted

Solution code:
import numpy as np

n = int(input())

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

Submission status: Accepted

Solution code:
s = int(input())

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

Submission status: Accepted

Solution code:
def read_line(*types): return [f(a) for a, f in zip(input().split(), types)]

n, = read_line(int)

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

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

Submission status: Accepted

Solution code:
# ABC099_A
num = int(input())
# text = input()

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

Submission status: Accepted

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

N = int(input())

print "ABD" if N >= 1000 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())

ans = 'ABC' if n <= 999 else 'ABD'

print(ans)

Submission status: Accepted

Solution code:
N = int(input())
n = ''
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:
# Q_A
N = int(input())

i = N // 1000

if i == 0:
    print('ABC')
else:
    print('ABD')

Submission status: Accepted

Solution code:
n = int(input().rstrip())

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

Submission status: Accepted

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

if 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:
a = input()

div = int(int(a) / 1000)

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

Submission status: Accepted

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

if(A>999):print("ABD")
if(A<1000):print("ABC")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from sys import stdin


def main():
    N = int(stdin.readline().rstrip())
    print('ABC' if N <= 999 else 'ABD')


if __name__ == '__main__':
    main()

Submission status: Accepted

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

main()

Submission status: Accepted

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