Write a program that takes in a letterclass ID of a ship and display the equivalent string class description of the given ID. Use the table below.

Class ID Ship ClassB or bBattleShipC or cCruiserD or dDestroyerF or fFrigate

-----Input-----

The first line contains an integer T, the total number of testcases. Then T lines follow, each line contains a character. 

-----Output-----
For each test case, display the Ship Class depending on ID, in a new line.

-----Constraints-----
- 1 ≤ T ≤ 1000

-----Example-----
Input

3 
B
c
D

Output
BattleShip
Cruiser
Destroyer

Starter code:

Solutions:
# cook your dish here
t=int(input())
for i in range(t):
    n=input()
    if(n=='b' or n=='B'):
        print('BattleShip')
    elif(n=='c' or n=='C'):
        print('Cruiser')
    elif(n=='d' or n=='D'):
        print('Destroyer')
    else:
        print('Frigate')

for _ in range(int(input())):
    p=input()
    if(p=='B' or p=='b'):
        print('BattleShip')
    elif(p=='C' or p=='c'):
        print('Cruiser')
    elif(p=='D' or p=='d'):
        print('Destroyer')
    elif(p=='F' or p=='f'):
        print('Frigate')


# cook your dish here
x=int(input())
for i in range(x):
    y=input()
    y=y.lower()
    if(y=="b"):
        print("BattleShip")
    if(y=="c"):
        print("Cruiser")
    if(y=="d"):
        print("Destroyer")
    if(y=="f"):
        print("Frigate")


# cook your dish here
T=int(input())
for i in range(T):
    n=input()
    if n=="B" or n=="b":
        print("BattleShip")
    if n == "C" or n == "c":
        print("Cruiser")
    if n == "D" or n == "d":
        print("Destroyer")
    if n == "F" or n == "f":
        print("Frigate")


# cook your dish here
n=int(input())
d={"B":"BattleShip",
"C" :	"Cruiser",
"D" : 	"Destroyer",
"F" : 	"Frigate"}
for i in  range(n):
    m=input().upper()
    print(d[m])


t=int(input())
for i in range(0,t):
    ch=input()
    if ch=='b' or ch=='B':
    	print("BattleShip\n")
    elif ch=='c' or ch=='C':
        print("Cruiser\n")
    elif ch=='D' or ch=='d':
        print("Destroyer\n")
    elif ch=='F' or ch=='f':
        print("Frigate\n")

t=int(input())
for i in range(0,t):
    ch=input()
    if ch=='b' or ch=='B':
    	print("BattleShip\n")
    elif ch=='c' or ch=='C':
        print("Cruiser\n")
    elif ch=='D' or ch=='d':
        print("Destroyer\n")
    elif ch=='F' or ch=='f':
        print("Frigate\n")

# cook your dish here
t=int(input())
for i in range(0,t):
    ch=input()
    if ch=='b' or ch=='B':
        print("BattleShip\n")
    elif ch=='c' or ch=='C':
        print("Cruiser\n")    
    elif ch=='d' or ch=='D':
        print("Destroyer\n")    
    elif ch=='f' or ch=='F':
        print("Frigate\n") 

t=int(input())
for i in range(0,t):
    ch=input()
    if ch=='b' or ch=='B':
        print("BattleShip\n")
    elif ch=='c' or ch=='C':
        print("Cruiser\n")    
    elif ch=='d' or ch=='D':
        print("Destroyer\n")    
    elif ch=='f' or ch=='F':
        print("Frigate\n")    # cook your dish here


# cook your dish here
t=int(input())
for i in range(t):
    id=input()
    if id=="B" or id=="b":
        print("BattleShip")
    if id=="C" or id=="c":
        print("Cruiser")
    if id=="D" or id=="d":
        print("Destroyer")
    if id=="F" or id=="f":
        print("Frigate")


# cook your dish here
n=int(input())
for i in range(n):
    x=input()
    if x=="b" or x=="B":
        print("BattleShip")
    elif x=="c" or x=="C":
        print("Cruiser")
    elif x=="d" or x=="D":
        print("Destroyer")
    else:
        print("Frigate")

test_case = int(input())

while test_case > 0:
    val = input()
    val = val.lower()
    if val == 'b':
        print("BattleShip")
    elif val == 'c':
        print('Cruiser')
    elif val == 'd':
        print('Destroyer')
    elif val == 'f':
        print("Frigate")
    test_case -= 1


t=int(input())
for i in range(t):
    x=input()
    if(x=='B' or x=='b'):
        print("BattleShip")
    elif (x=='C' or x=='c'):
        print("Cruiser")
    elif (x=='D' or x=='d'):
        print("Destroyer")
    elif (x=='F' or x=='f'):
        print("Frigate")

t=int(input())
a={'B':"BattleShip",'C':"Cruiser",'D':"Destroyer",'F':"Frigate",'b':"BattleShip",'c':"Cruiser",'d':"Destroyer",'f':"Frigate"}
for i in range(t):
    key=input()
    print(a[key])


t=int(input())
i=0
while i<t:
	n=input()
	if n=='b' or n=='B':
		print("BattleShip")
	if n=='c' or n=='C':
		print("Cruiser")
	if n=='d' or n=='D':
		print("Destroyer")
	if n=='f' or n=='F':
		print("Frigate")
	i+=1

# cook your dish he
for i in range(int(input())):
    s=input()
    if s=="B" or s=="b":
        print("BattleShip")
    if s=="C" or s=="c":
        print("Cruiser")
    if s=="D" or s=="d":
        print("Destroyer")
    if s=="F" or s=="f":
        print("Frigate")

t = int(input())

for i in range(t):
    num = (input())
    if (num == "B" or num == "b"):
        print("BattleShip")
    elif (num == "C" or num == "c"):
        print("Cruiser")
    elif (num == "D" or num == "d"):
        print("Destroyer")
    elif (num == "F" or num == "f" ):
        print("Frigate")    



# cook your dish here
t = int(input())

for i in range(t):
    num = (input())
    if (num == "B" or num == "b"):
        print("BattleShip")
    elif (num == "C" or num == "c"):
        print("Cruiser")
    elif (num == "D" or num == "d"):
        print("Destroyer")
    elif (num == "F" or num == "f" ):
        print("Frigate")    


# cook your dish here
d={'b':"BattleShip",'B':"BattleShip",'c':"Cruiser",'C':"Cruiser",'d':"Destroyer","D":"Destroyer",'f':"Frigate",'F':"Frigate"}
t=int(input())
for i in range(t):
    a=input()
    print(d[a])

# cook your dish here
t=int(input())
for i in range(t):
    n=input()
    if(n=='B'or n=='b'):
        print("BattleShip")
    elif (n=="C" or n=="c"):
        print("Cruiser")
    elif (n=="D" or n=="d"):
        print("Destroyer")
    else:
        print("Frigate")


dec= {"b":"BattleShip","c":"Cruiser","d":"Destroyer","f":"Frigate"}
for _ in range(int(input())):
    word = input().lower()
    print(dec[word])

# cook your dish here
dec= {"B":"BattleShip","C":"Cruiser","D":"Destroyer","F":"Frigate","b":"BattleShip","c":"Cruiser","d":"Destroyer","f":"Frigate"}
T = int(input())
for i in range(T):
    word = input()
    print(dec[word])

# cook your dish here
for _ in range(int(input())):
    d={'b':'BattleShip','c':'Cruiser','d':'Destroyer','f':'Frigate'}
    a=input().lower()
    print(d[a])

T =int(input())
for i in range(0,T) :
    Ch=str(input())
    if Ch=='B'or Ch=='b':
        print("BattleShip")
    if Ch=='C'or Ch=='c':
        print("Cruiser")
    if Ch=='D'or Ch=='d':
        print("Destroyer")
    if Ch=='F'or Ch=='f':
        print("Frigate")

# cook your dish here
for i in range(int(input())):
    ele=input()
    if(ele=='B' or ele=='b'):
        print('BattleShip')
    elif(ele=='C' or ele=='c'):
        print('Cruiser')
    elif(ele=='D' or ele=='d'):
        print('Destroyer')
    else:
        print('Frigate')