#include <iostream.h>
void main ( ) {
int x;
cin>>x;
if(x>50){
cout<<"pass";
int y=x/10;
switch(y){
case 10:
cout<<"A";
case 9:
cout<<"A";
case 8:
cout<<"B";
case 7:
cout<<"C";
case 6:
cout<<"D";
case 5:
cout<<"E";}
else
cout <<"fail";}}
#include <iostream>
int main ( ) {
int x;
cin>>x;
if(x>50) {
cout<<"pass";
int y=x/10;
switch(y) {
case 10:
cout<<"A";
case 9:
cout<<"A";
case 8:
cout<<"B";
case 7:
cout<<"C";
case 6:
cout<<"D";
case 5:
cout<<"E";
}
else
cout <<"fail";
}
}