// Arup Guha
// 12/15/2024
// Solution to Kattis Problem: Vaccine Efficacy
// https://open.kattis.com/problems/vaccineefficacy

import java.util.*;

public class vaccineefficacy {

	public static void main(String[] args) {
	
		Scanner stdin = new Scanner(System.in);
		int n = stdin.nextInt();
		
		// Accumulators.
		int nVac = 0, nNon = 0;
		int[] vCnt = new int[3];
		int[] nCnt = new int[3];
		
		// Go through data.
		for (int loop=0; loop<n; loop++) {
			String s = stdin.next();
			
			// Vaccinated.
			if (s.charAt(0) == 'Y') {
				nVac++;
				for (int i=1; i<4; i++)
					if (s.charAt(i) == 'Y') 
						vCnt[i-1]++;
			}
			
			// Not vaccinated.
			else {
				nNon++;
				for (int i=1; i<4; i++)
					if (s.charAt(i) == 'Y')
						nCnt[i-1]++;
			}
		}
		
		// Do all 3
		for (int i=0; i<3; i++) {
		
			// Get rates for both groups.
			double vR = 1.0*vCnt[i]/nVac;
			double nR = 1.0*nCnt[i]/nNon;
			
			// Ta da!
			if (vR >= nR) 
				System.out.println("Not Effective");
			else
				System.out.println( 100*(nR-vR)/nR );
		}
	}
}