for i in range(int(input())):
    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')
