import java.io.*;
public class PROMEDIOTRESNOTAS { public static void main(String[] args) throws IOException { int NOTA1,NOTA2,NOTA3,PRO;
BufferedReader Teclado=new BufferedReader(new InputStreamReader( System.in));
System.out.println("Ingresa nota 1:"); NOTA1=Integer.parseInt(Teclado.readLine());
System.out.println("Ingresa nota 2:"); NOTA2=Integer.parseInt(Teclado.readLine());
System.out.println("Ingresa nota 3:"); NOTA3=Integer.parseInt(Teclado.readLine());
PRO=(NOTA1+NOTA2+NOTA3)/3;
if(PRO==10) System.out.println("A"); else if(PRO==9) System.out.println("B"); else if(PRO==8) System.out.println("C"); else if(PRO==6) System.out.println("D"); else if(PRO==7) System.out.println("E"); else if(PRO>=5 && PRO<=0) System.out.println("F"); else System.out.println("NO EXISTE..."); }
}