# Arup Guha
# 12/15/2025
# Solution to Kattis Problem: Vaccine Efficacy
# https://open.kattis.com/problems/vaccineefficacy

# Total participants
n = int(input())

# Counting each group.
nVac = 0
nNon = 0

# Disease A,B,C
vCnt = [0,0,0]
nCnt = [0,0,0]

# Go through data.
for i in range(n):

    # Get input.
    s = input().strip()

    # Vaccinated.
    if s[0] == 'Y':
        nVac += 1

        # Look for each strain.
        for i in range(1,4):
            if s[i] == 'Y':
                vCnt[i-1] += 1

    # Not vaccinated.
    else:

        nNon += 1

        # Look for each strain.
        for i in range(1,4):
            if s[i] == 'Y':
                nCnt[i-1] += 1

# Go through the stats:
for i in range(3):

    # Group rates.
    vR = vCnt[i]/nVac
    nR = nCnt[i]/nNon

    # Not effective case.
    if  vR >= nR:
        print("Not Effective")

    # This is what they want.
    else:
        print((nR-vR)/nR*100)
    
