for i in range(3):
a = list(map(int, input().split()))
b = 0
c = 0
for j in range(len(a)):
if a[j] == 1:
c = c + 1
if c==4:
print("E")
elif c==3:
print("A")
elif c==2:
print("B")
elif c==1:
print("C")
else:
print("D")
# class 틀 , 설계도 ex) 붕어빵틀
# 객체 설계도로 찍어낸 물건 ex) 슈붕, 팥붕, 피붕
class 붕어빵틀 :
def __init__(self, sok1):
self.sok = sok1
self.size = 10
def speak(self):
print('나의 재료는',self.sok,'이고, 크기는',self.size,'입니다')
a = 붕어빵틀('슈크림')
b = 붕어빵틀('팥')
a.speak()
b.speak()
'''
'''
class Person :
def __init__(self):
self.age = 100
self.name = "이름없음"
self.nation = "한국"
def setName(self,name1):
self.name = name1
def setage(self,age1):
self.age = age1
def setnation(self,nation1):
self.nation = nation1
def speak(self):
print("내 이름은",self.name,"이고,나이는",self.age,"이고,국적은",self.nation,"입니다.")
class Student(Person) :
def __init__(self):
super().__init__()
self.grade = 1
def setGrade(self,grade1):
self.grade = grade1
def speak(self): # 오버라이딩
super().speak()
print('그리고 ',self.grade,'학년입니다')
class Teacher(Person) :
def setsubject(self,subject1):
self.subject = subject1
def speak(self):
super().speak()
print('그리고 ',self.subject,'담당입니다')
# b = Student()
# b.setGrade(5)
# b.speak()
# c = Teacher()
# c.setsubject("코딩")
# c.speak()
# arr = []
# names = ['주정혁','김정혁','이정혁','최정혁','박정혁']
#
# for i in range(5) :
# arr.append(Student())
#
# for i in range(5) :
# # arr[i].setGrade(i+1)
# print('이름을 입력하세요')
# name = input()
# arr[i].setName(name)
# # arr[i].setName(names[i])
#
# for i in range(5) :
# arr[i].speak()
# a = Person()
#
# a.speak()
#
# a.setName("주정혁")
# a.setage("13")
# a.setnation("Korea")
# a.speak()
'''
# 이름과 점수를 가지는 클래스 만들기
# 이름과 점수 입력받아서, 객체 배열 만들기
class Student:
def __init__(self):
self.name="none"
self.score="0"
def setname(self,name1):
self.name=name1
def setscore(self, score1):
self.score=score1
def speak(self):
print("내 이름은",self.name,"이고,점수는",self.score,"입니다")
n,m=map(int,input().split())
for i in range(n):
b,c=setname,setscore
print(b,c)